From eb9cf34645374206dd330448f4bb9a6376ecb9d1 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 30 Oct 2006 20:11:27 +0000 Subject: [PATCH] Add db update 31 to fix any fairs that have rolled over their config variables using 2.0.0.. it is essentially the same db updates as db.21 that re-categorizes the variables. Change version to 2.0.2 so i can do a release since the two bugs fixed are fairly significant. --- db/db.code.version.txt | 2 +- db/db.update.31.sql | 36 ++++++++++++++++++++++++++++++++++++ version.txt | 2 +- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 db/db.update.31.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 64bb6b7..e85087a 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -30 +31 diff --git a/db/db.update.31.sql b/db/db.update.31.sql new file mode 100644 index 0000000..dd11cb0 --- /dev/null +++ b/db/db.update.31.sql @@ -0,0 +1,36 @@ +UPDATE `config` SET `category` = 'Special', ord='0' WHERE `year`=0; +UPDATE `config` SET `category` = 'Global', ord='100' WHERE var='fairname'; +UPDATE `config` SET `category` = 'Global', ord='200' WHERE var='default_language'; +UPDATE `config` SET `category` = 'Global', ord='300' WHERE var='fairmanageremail'; +UPDATE `config` SET `category` = 'Global', ord='400' WHERE var='filterdivisionbycategory'; +UPDATE `config` SET `category` = 'Global', ord='500' WHERE var='committee_publiclayout'; +UPDATE `config` SET `category` = 'Global', ord='600' WHERE var='project_num_format'; +UPDATE `config` SET `category` = 'Judge Scheduler', ord='100' WHERE var='JSCHEDULER_effort'; +UPDATE `config` SET `category` = 'Judge Scheduler', ord='200' WHERE var='JSCHEDULER_min_judges_per_team'; +UPDATE `config` SET `category` = 'Judge Scheduler', ord='300' WHERE var='JSCHEDULER_max_judges_per_team'; +UPDATE `config` SET `category` = 'Judge Scheduler', ord='400' WHERE var='JSCHEDULER_max_projects_per_team'; +UPDATE `config` SET `category` = 'Judge Scheduler', ord='500' WHERE var='JSCHEDULER_times_judged'; +UPDATE `config` SET `category` = 'Judge Registration', ord='100' WHERE var='judge_registration_type'; +UPDATE `config` SET `category` = 'Judge Registration', ord='200' WHERE var='judge_registration_singlepassword'; +UPDATE `config` SET `category` = 'Judge Registration', ord='300' WHERE var='judges_password_expiry_days'; +UPDATE `config` SET `category` = 'Judge Registration', ord='400' WHERE var='minjudgeage'; +UPDATE `config` SET `category` = 'Judge Registration', ord='500' WHERE var='maxjudgeage'; +UPDATE `config` SET `category` = 'Participant Registration', ord='100' WHERE var='participant_registration_type'; +UPDATE `config` SET `category` = 'Participant Registration', ord='200' WHERE var='participant_registration_singlepassword'; +UPDATE `config` SET `category` = 'Participant Registration', ord='300' WHERE var='regfee'; +UPDATE `config` SET `category` = 'Participant Registration', ord='400' WHERE var='regfee_per'; +UPDATE `config` SET `category` = 'Participant Registration', ord='500' WHERE var='minage'; +UPDATE `config` SET `category` = 'Participant Registration', ord='501' WHERE var='maxage'; +UPDATE `config` SET `category` = 'Participant Registration', ord='600' WHERE var='mingrade'; +UPDATE `config` SET `category` = 'Participant Registration', ord='601' WHERE var='maxgrade'; +UPDATE `config` SET `category` = 'Participant Registration', ord='700' WHERE var='minmentorsperproject'; +UPDATE `config` SET `category` = 'Participant Registration', ord='701' WHERE var='maxmentorsperproject'; +UPDATE `config` SET `category` = 'Participant Registration', ord='800' WHERE var='minstudentsperproject'; +UPDATE `config` SET `category` = 'Participant Registration', ord='801' WHERE var='maxstudentsperproject'; +UPDATE `config` SET `category` = 'Participant Registration', ord='900' WHERE var='maxspecialawardsperproject'; +UPDATE `config` SET `category` = 'Participant Registration', ord='1000' WHERE var='participant_student_personal'; +UPDATE `config` SET `category` = 'Participant Registration', ord='1100' WHERE var='participant_project_summary_wordmax'; +UPDATE `config` SET `category` = 'Participant Registration', ord='1200' WHERE var='participant_student_foodreq'; +UPDATE `config` SET `category` = 'Participant Registration', ord='1300' WHERE var='participant_student_tshirt'; +UPDATE `config` SET `category` = 'Participant Registration', ord='1400' WHERE var='specialawardnomination'; +UPDATE `config` SET `category` = 'Participant Registration', ord='1500' WHERE var='usedivisionselector'; diff --git a/version.txt b/version.txt index 38f77a6..e9307ca 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.1 +2.0.2