HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
AuthenticationKey then UserAuthenticationProviderID as Primary Key conflict with 2021.012 Upgrade
So when making sure that my database is ready for the 2021.012 update I ran /utility/structure on my 3.3 install and these 2 things pop up alter table `GDN_UserAuthenticationProvider` drop primary key; alter table `GDN_UserAuthenticationProvider` add primary key (`AuthenticationKey`); From what I can understand is that it… -
Limitation in Gdn_Model - Cannot handle composite Primary Keys
I spotted this issue today, while I was testing an Alpha version of the Badges plugin. One of my tables has a composite primary key (a surrogate key would be superfluous) and, although Gdn_Schema::PrimaryKey() returns, correctly, an array with two field names, class Gdn_Model only takes the first one as the Primary key.… -
Re: Is it possible to know if a Gdn_Model::Save() was successful, without using an autoincrement key?
Technically, it's not a bug, but a design choice. As long as you use a primary key, the insert returns the new key value upon INSERT, and zero upon error. Interestingly, the logic breaks also if you have a composite primary key. The code, which I don't have handy, first fetches the primary key fields (e.g. Field1, Field2,… -
Re: Add custom HTML between discussions and posts
-
Re: On consistencies - Discussions, Questions, Rate My Link, and possibly few others
-
Possible bug in Gdn_DatabaseStructure->PrimaryKey()
I stumbled upon a possible bug when I tried to define the schema for a new table for my plugin. Specifically, it's not possible to specify a Primary Key field which is not an Integer, although the method signature indicates that it should be possible. This is due to the fact that method _Gdn_DatabaseStructure->PrimaryKey()… -
Re: Upgrade from 2.0.18.11 to 2.1 failed bad
Really... weird, here is the last bit of SQL that needs to execute: alter table GDN_UserRole add primary key (UserID, RoleID); But it throws the error: ERROR 1062 (23000): Duplicate entry '5-8' for key 'PRIMARY' However, show create table, shows the table currently has no PRIMARY key.... Hmmmmm..... mysql> show create… -
The Hall Of Code Curiosities
I just stumbled over this code (simplified for presentation purposes): $CssClass = 'Button Action Big Primary';$Css = 'Button Primary Action NewPoll';$Css .= strpos($CssClass, 'Big') !== FALSE ? ' BigButton' : '';echo ButtonGroup($this->Buttons, $Css, $this->DefaultButton); This summarizes my experience with the Vanilla… -
Re: bring back ability to hide categories from categories list [Hosted Vanilla question]
-
Re: New OSS Forum Theme - Call for testers and feedback
72 results