summaryrefslogtreecommitdiffstats
path: root/apis/update.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'apis/update.inc.php')
-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;
+}