From 8aa2738a06c3c382e4ab63d1625498452bc50241 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 10 Dec 2014 14:44:53 +0100 Subject: 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 --- apis/update.inc.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'apis') 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; +} -- cgit v1.2.3-55-g7522