Tagged Questions
0
votes
1answer
208 views
dbDelta ALTER TABLE syntax?
Due to some changes in the DB, I need to alter a table to add one column to it, but even though the function is running, the table isn't altered.
Here's the ALTER TABLE code that I've written
$sql = ...
2
votes
1answer
107 views
dbDelta not creating tables
I went through a lot of threads, codex page and tried messing with a lot of things but my code doesn't seem to be creating the tables. And I am not able to figure out where I am going wrong.
I checked ...
1
vote
1answer
164 views
dbDelta only creates the last table
I'm using following install function with dbDelta as referring to the codex, articles on SO I watched out for the typical problems with e.g. one space instead of two spaced at the PRIMARY KEY ...
...
0
votes
1answer
276 views
dbdelta failing with error: "WordPress database error Table 'wp_2_myPlugin' already exists
I'm upgrading a plugin and having issues with dbdelta.
Here's the original db creation function:
global $jal_db_version;
$jal_db_version = "0.1";
function jal_install() {
global ...