Populating the roles table, add "superuser" field to the accounts table

This commit is contained in:
jacob 2010-06-23 20:45:12 +00:00
parent 41ca527d20
commit 1743beb14e
2 changed files with 17 additions and 1 deletions

View File

@ -1 +1 @@
192
193

16
db/db.update.193.sql Normal file
View File

@ -0,0 +1,16 @@
INSERT INTO `roles` (`roletype`, `rolename`)
VALUES
('alumni', 'Alumni'),
('committee', 'Committee'),
('fair', 'Fair'),
('judge', 'Judge'),
('mentor', 'Mentor'),
('parent', 'Parent'),
('principal', 'Principal'),
('sponsor', 'Sponsor'),
('student', 'Student'),
('teacher', 'Teacher'),
('volunteer', 'Volunteer');
ALTER TABLE `accounts` ADD `superuser` ENUM( 'no', 'yes' ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'no';