- 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.
This commit is contained in:
dave 2007-11-16 05:13:27 +00:00
parent 1cd2befdcd
commit 82697d2dd8
2 changed files with 21 additions and 1 deletions

View File

@ -1 +1 @@
60
61

20
db/db.update.61.sql Normal file
View File

@ -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'