Timeline for dbDelta does not create Table, but returns success
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 18, 2016 at 23:38 | vote | accept | user998163 | ||
Nov 18, 2016 at 0:52 | history | tweeted | twitter.com/StackWordPress/status/799415010296467456 | ||
Nov 16, 2016 at 18:22 | answer | added | user998163 | timeline score: 4 | |
Nov 15, 2016 at 17:39 | comment | added | Dave Romsey |
This code worked for me. I had to add require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); prior to calling dbdelta($sql), but I'm figuring that was omitted in the question by accident? mysql v10.1.10-MariaDB
|
|
Nov 15, 2016 at 17:12 | comment | added | Tom J Nowell♦ | Your table should have a primary key, also dbdelta is very fussy about the way the SQL is formatted | |
Nov 15, 2016 at 17:09 | history | asked | user998163 | CC BY-SA 3.0 |