summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2014-12-10 14:44:53 +0100
committerSimon Rettberg2014-12-10 14:44:53 +0100
commit8aa2738a06c3c382e4ab63d1625498452bc50241 (patch)
tree92c188eea309aaceb8eaf1f02956ba4eb77017ec /apis
parentAdd option to hide or show password fields (diff)
downloadslx-admin-8aa2738a06c3c382e4ab63d1625498452bc50241.tar.gz
slx-admin-8aa2738a06c3c382e4ab63d1625498452bc50241.tar.xz
slx-admin-8aa2738a06c3c382e4ab63d1625498452bc50241.zip
Store processed and unprocessed values of settings; add option to download minilinux components that seem up to date; add setting to show/hide password fields
Diffstat (limited to 'apis')
-rw-r--r--apis/update.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/apis/update.inc.php b/apis/update.inc.php
index 1912a3c1..9c0cf740 100644
--- a/apis/update.inc.php
+++ b/apis/update.inc.php
@@ -171,3 +171,17 @@ function update_5()
}
return true;
}
+
+// #######################
+// ##### 2014-12-04
+// Add displayvalue column to setting_*
+function update_6()
+{
+ foreach (array('setting_global', 'setting_distro') as $table) {
+ if (!tableHasColumn($table, 'displayvalue')) {
+ Database::exec("ALTER TABLE $table ADD `displayvalue` TEXT NOT NULL");
+ Database::exec("UPDATE $table SET displayvalue = value");
+ }
+ }
+ return true;
+}