Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

AliceWonderFull on "Question on codex documentation and dbDelta"

$
0
0

http://codex.wordpress.org/Creating_Tables_with_Plugins

On that page it says You must have two spaces between the words PRIMARY KEY and the definition of your primary key''

but then the example does not actually specify a primary key, it specifies a unique key - and does not appear to have two spaces.

What is the right thing to do to work with dbDelta ??

-=-

Secondly, can I use the CHECK feature to restrict the values a column can have or is that not supported if using dbDelta?


Viewing all articles
Browse latest Browse all 8245

Trending Articles