science-ation/db/db.update.195.sql
2010-07-06 17:50:52 +00:00

38 lines
1.7 KiB
SQL

ALTER TABLE users ADD COLUMN `emailprivate` varchar(128);
ALTER TABLE users ADD COLUMN `ord` INT NOT NULL;
ALTER TABLE users ADD COLUMN `displayemail` enum('no','yes');
ALTER TABLE users ADD COLUMN `access_admin` enum('no','yes');
ALTER TABLE users ADD COLUMN `access_config` enum('no','yes');
ALTER TABLE users ADD COLUMN `access_super` enum('no','yes');
ALTER TABLE users ADD COLUMN `fairs_id` INT NOT NULL;
ALTER TABLE users ADD COLUMN `years_school` tinyint(4) NOT NULL;
ALTER TABLE users ADD COLUMN `years_regional` tinyint(4) NOT NULL;
ALTER TABLE users ADD COLUMN `years_national` tinyint(4) NOT NULL;
ALTER TABLE users ADD COLUMN `willing_chair` enum('yes','no');
ALTER TABLE users ADD COLUMN `special_award_only` enum('yes','no');
ALTER TABLE users ADD COLUMN `cat_prefs` tinytext;
ALTER TABLE users ADD COLUMN `div_prefs` tinytext;
ALTER TABLE users ADD COLUMN `divsub_prefs` tinytext;
ALTER TABLE users ADD COLUMN `languages` tinytext;
ALTER TABLE users ADD COLUMN `highest_psd` tinytext;
ALTER TABLE users ADD COLUMN `expertise_other` tinytext;
ALTER TABLE users ADD COLUMN `sponsors_id` INT NOT NULL DEFAULT '0';
ALTER TABLE users ADD COLUMN `primary` enum('no','yes');
ALTER TABLE users ADD COLUMN `position` varchar(64);
ALTER TABLE users ADD COLUMN `notes` text;
ALTER TABLE users ADD COLUMN `schools_id` INT NOT NULL;
ALTER TABLE users ADD COLUMN `grade` INT;
INSERT INTO `roles` (`id`, `roletype`, `rolename`) VALUES
(1, 'alumni', 'Alumni'),
(2, 'committee', 'Committee'),
(3, 'fair', 'Fair'),
(4, 'judge', 'Judge'),
(5, 'mentor', 'Mentor'),
(6, 'parent', 'Parent'),
(7, 'principal', 'Principal'),
(8, 'sponsor', 'Sponsor'),
(9, 'student', 'Student'),
(10, 'teacher', 'Teacher'),
(11, 'volunteer', 'Volunteer');