From 4f65058f59eb1fd1887adb37ef92fc790fb4b657 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 17 Jun 2010 20:56:03 +0000 Subject: [PATCH] Migrate config options `theme` and `theme_icons` from Global(FAIRYEAR) to Special(no fair year associated) --- db/db.update.188.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/db/db.update.188.php b/db/db.update.188.php index f215380..ea70e32 100644 --- a/db/db.update.188.php +++ b/db/db.update.188.php @@ -18,6 +18,13 @@ function db_update_188_post() echo " Setting science fair conference for {$config['FAIRYEAR']} to running\n"; mysql_query("UPDATE conferences SET status='running' WHERE year='{$config['FAIRYEAR']}'"); + //now update a couple config options for now, until we cna do soemthing better, without theme and theme_icons + //being fairyear independent, they wont get set at all so the page wont even load + mysql_query("UPDATE config SET year=0, category='Special' WHERE year='{$config['FAIRYEAR']}' AND var='theme'"); + mysql_query("UPDATE config SET year=0, category='Special' WHERE year='{$config['FAIRYEAR']}' AND var='theme_icons'"); + mysql_query("DELETE FROM config WHERE year!=0 AND var='theme'"); + mysql_query("DELETE FROM config WHERE year!=0 AND var='theme_icons'"); + }