From 1743beb14e3cbb96961a6351c51afad5451575dc Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 23 Jun 2010 20:45:12 +0000 Subject: [PATCH] Populating the roles table, add "superuser" field to the accounts table --- db/db.code.version.txt | 2 +- db/db.update.193.sql | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 db/db.update.193.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 86a0307..2455a46 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -192 +193 diff --git a/db/db.update.193.sql b/db/db.update.193.sql new file mode 100644 index 0000000..72a6b01 --- /dev/null +++ b/db/db.update.193.sql @@ -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'; +