summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2014-12-12 18:28:38 +0100
committerSimon Rettberg2014-12-12 18:28:38 +0100
commit97a0f7dcfdcf4a5263c1cc6c19160a0868abb5f2 (patch)
treecf735055cfb785ac64e60ab477e215f5f50ad767 /apis
parent[news] fix xml tags of news api (diff)
downloadslx-admin-97a0f7dcfdcf4a5263c1cc6c19160a0868abb5f2.tar.gz
slx-admin-97a0f7dcfdcf4a5263c1cc6c19160a0868abb5f2.tar.xz
slx-admin-97a0f7dcfdcf4a5263c1cc6c19160a0868abb5f2.zip
Rework config module class structure. Still some TODOs though....
Diffstat (limited to 'apis')
-rw-r--r--apis/update.inc.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apis/update.inc.php b/apis/update.inc.php
index 9c0cf740..878dc47f 100644
--- a/apis/update.inc.php
+++ b/apis/update.inc.php
@@ -185,3 +185,16 @@ function update_6()
}
return true;
}
+
+// #######################
+// ##### 2014-12-12
+// Rename config modules, add "has changed" column to modules
+function update_7()
+{
+ if (!tableHasColumn('configtgz_module', 'haschanged'))
+ Database::exec("ALTER TABLE configtgz_module ADD `haschanged` TINYINT DEFAULT '0'");
+ Database::exec("UPDATE configtgz_module SET moduletype = 'Branding' WHERE moduletype = 'BRANDING'");
+ Database::exec("UPDATE configtgz_module SET moduletype = 'AdAuth' WHERE moduletype = 'AD_AUTH'");
+ Database::exec("UPDATE configtgz_module SET moduletype = 'CustomModule' WHERE moduletype = 'custom'");
+ return true;
+}