aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
diff options
context:
space:
mode:
authorMelanie2010-01-08 18:10:59 +0000
committerMelanie2010-01-08 18:10:59 +0000
commitd14589d1abf4ca39a5fc5ba7be10e57edff4333c (patch)
tree2d3215a7abfa0f45898139b8a44d38ac58d09e80 /OpenSim/Data/MySQL
parentInching ahead... This compiles, but very likely does not run. (diff)
downloadopensim-SC_OLD-d14589d1abf4ca39a5fc5ba7be10e57edff4333c.zip
opensim-SC_OLD-d14589d1abf4ca39a5fc5ba7be10e57edff4333c.tar.gz
opensim-SC_OLD-d14589d1abf4ca39a5fc5ba7be10e57edff4333c.tar.bz2
opensim-SC_OLD-d14589d1abf4ca39a5fc5ba7be10e57edff4333c.tar.xz
Add migrations to add fields to user and auth tables
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r--OpenSim/Data/MySQL/Resources/003_AuthStore.sql5
-rw-r--r--OpenSim/Data/MySQL/Resources/004_UserAccount.sql8
2 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/003_AuthStore.sql b/OpenSim/Data/MySQL/Resources/003_AuthStore.sql
new file mode 100644
index 0000000..af9ffe6
--- /dev/null
+++ b/OpenSim/Data/MySQL/Resources/003_AuthStore.sql
@@ -0,0 +1,5 @@
1BEGIN;
2
3ALTER TABLE `auth` ADD COLUMN `accountType` VARCHAR(32) NOT NULL DEFAULT 'UserAccount';
4
5COMMIT;
diff --git a/OpenSim/Data/MySQL/Resources/004_UserAccount.sql b/OpenSim/Data/MySQL/Resources/004_UserAccount.sql
new file mode 100644
index 0000000..8abcd53
--- /dev/null
+++ b/OpenSim/Data/MySQL/Resources/004_UserAccount.sql
@@ -0,0 +1,8 @@
1BEGIN;
2
3ALTER TABLE UserAccounts ADD COLUMN UserLevel integer NOT NULL DEFAULT 0;
4ALTER TABLE UserAccounts ADD COLUMN UserFlags integer NOT NULL DEFAULT 0;
5ALTER TABLE UserAccounts ADD COLUMN UserTitle varchar(64) NOT NULL DEFAULT '';
6
7COMMIT;
8