summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2015-01-21 17:06:23 +0100
committerSimon Rettberg2015-01-21 17:06:23 +0100
commit5f7f8ed2f53ef73a6e350f5a0f1301ede68d505f (patch)
treec0341e12aad950c8894f35a08667cf44d06ee47e /apis
parentconfig module structure completed. Many other fixes. Hidden pw field support. (diff)
downloadslx-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.php2
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;