HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
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: Possible bug in Gdn_DatabaseStructure->PrimaryKey()
Correction: the above issue can be circumvented by using method Column() instead of PrimaryKey(). To be more precise, Column('MyCustomID', 'int', FALSE, 'primary') would behave as expected, creating an Integer field set as Primary Key, but not as AutoIncrement. Of course, the field could also be created as a varchar, if…
2 results