From d14589d1abf4ca39a5fc5ba7be10e57edff4333c Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 8 Jan 2010 18:10:59 +0000 Subject: [PATCH] Add migrations to add fields to user and auth tables --- OpenSim/Data/MySQL/Resources/003_AuthStore.sql | 5 +++++ OpenSim/Data/MySQL/Resources/004_UserAccount.sql | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 OpenSim/Data/MySQL/Resources/003_AuthStore.sql create mode 100644 OpenSim/Data/MySQL/Resources/004_UserAccount.sql diff --git a/OpenSim/Data/MySQL/Resources/003_AuthStore.sql b/OpenSim/Data/MySQL/Resources/003_AuthStore.sql new file mode 100644 index 0000000000..af9ffe6f1d --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/003_AuthStore.sql @@ -0,0 +1,5 @@ +BEGIN; + +ALTER TABLE `auth` ADD COLUMN `accountType` VARCHAR(32) NOT NULL DEFAULT 'UserAccount'; + +COMMIT; diff --git a/OpenSim/Data/MySQL/Resources/004_UserAccount.sql b/OpenSim/Data/MySQL/Resources/004_UserAccount.sql new file mode 100644 index 0000000000..8abcd53a16 --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/004_UserAccount.sql @@ -0,0 +1,8 @@ +BEGIN; + +ALTER TABLE UserAccounts ADD COLUMN UserLevel integer NOT NULL DEFAULT 0; +ALTER TABLE UserAccounts ADD COLUMN UserFlags integer NOT NULL DEFAULT 0; +ALTER TABLE UserAccounts ADD COLUMN UserTitle varchar(64) NOT NULL DEFAULT ''; + +COMMIT; +