diff options
author | Simon Rettberg | 2015-01-21 17:06:23 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-01-21 17:06:23 +0100 |
commit | 5f7f8ed2f53ef73a6e350f5a0f1301ede68d505f (patch) | |
tree | c0341e12aad950c8894f35a08667cf44d06ee47e /apis | |
parent | config module structure completed. Many other fixes. Hidden pw field support. (diff) | |
download | slx-admin-5f7f8ed2f53ef73a6e350f5a0f1301ede68d505f.tar.gz slx-admin-5f7f8ed2f53ef73a6e350f5a0f1301ede68d505f.tar.xz slx-admin-5f7f8ed2f53ef73a6e350f5a0f1301ede68d505f.zip |
Fix stupid bug in update query, check DB version before handling callbacks
Diffstat (limited to 'apis')
-rw-r--r-- | apis/update.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apis/update.inc.php b/apis/update.inc.php index d478c14a..13a5f593 100644 --- a/apis/update.inc.php +++ b/apis/update.inc.php @@ -206,7 +206,7 @@ function update_8() if (!tableHasColumn('configtgz_module', 'version')) Database::exec("ALTER TABLE `configtgz_module` ADD `version` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'"); if (!tableHasColumn('configtgz_module', 'status')) - Database::exec("ADD `status` ENUM( 'OK', 'MISSING', 'OUTDATED' ) NOT NULL DEFAULT 'MISSING'"); + Database::exec("ALTER TABLE `configtgz_module` ADD `status` ENUM( 'OK', 'MISSING', 'OUTDATED' ) NOT NULL DEFAULT 'MISSING'"); if (!tableHasColumn('callback', 'args')) Database::exec("ALTER TABLE `callback` ADD `args` TEXT NOT NULL DEFAULT ''"); return true; |