From 82697d2dd8a3a33b8652251bc9d7b1dfd1f32150 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 16 Nov 2007 05:13:27 +0000 Subject: [PATCH] - Add 2 tables for volunteers. One to hold the positions available, and one to store the signups for those positions. - Add the 'volunteer' report type in the database. --- db/db.code.version.txt | 2 +- db/db.update.61.sql | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 db/db.update.61.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index abdfb05..b1e7d26 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -60 +61 diff --git a/db/db.update.61.sql b/db/db.update.61.sql new file mode 100644 index 0000000..025ceb3 --- /dev/null +++ b/db/db.update.61.sql @@ -0,0 +1,20 @@ +CREATE TABLE `volunteer_positions` ( +`id` INT NOT NULL AUTO_INCREMENT , +`name` VARCHAR( 128 ) NOT NULL , +`desc` TINYTEXT NOT NULL , +`meet_place` TINYTEXT NOT NULL , +`start` DATETIME NOT NULL , +`end` DATETIME NOT NULL , +`year` INT NOT NULL , +PRIMARY KEY ( `id` ) +) TYPE = MYISAM ; + +CREATE TABLE `volunteer_positions_signup` ( +`id` INT NOT NULL AUTO_INCREMENT , +`users_id` INT NOT NULL , +`volunteer_positions_id` INT NOT NULL , +`year` INT NOT NULL , +PRIMARY KEY ( `id` ) +) TYPE = MYISAM ; + +ALTER TABLE `reports` CHANGE `type` `type` ENUM( 'student', 'judge', 'award', 'committee', 'school', 'volunteer' ) NOT NULL DEFAULT 'student'