aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/Resources/UserAccount.migrations
diff options
context:
space:
mode:
authorMelanie2010-05-18 19:02:40 +0100
committerMelanie2010-05-18 19:03:16 +0100
commite260610c0096ac5323c32a7a593e5521997eb732 (patch)
tree5d936d6450d580cf24e133047df7ff8d759de557 /OpenSim/Data/SQLite/Resources/UserAccount.migrations
parentAllow remote admin to be used on a different port from the main region port (diff)
parentMS SQL migrations converted to the new format (diff)
downloadopensim-SC-e260610c0096ac5323c32a7a593e5521997eb732.zip
opensim-SC-e260610c0096ac5323c32a7a593e5521997eb732.tar.gz
opensim-SC-e260610c0096ac5323c32a7a593e5521997eb732.tar.bz2
opensim-SC-e260610c0096ac5323c32a7a593e5521997eb732.tar.xz
Merge branch 'Migrations'
This merges AlexRa's work on migration streamlining. This merge is experimental. If it causes issues, feel free to back out. Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Data/SQLite/Resources/UserAccount.migrations')
-rw-r--r--OpenSim/Data/SQLite/Resources/UserAccount.migrations27
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/Resources/UserAccount.migrations b/OpenSim/Data/SQLite/Resources/UserAccount.migrations
new file mode 100644
index 0000000..854fe69
--- /dev/null
+++ b/OpenSim/Data/SQLite/Resources/UserAccount.migrations
@@ -0,0 +1,27 @@
1:VERSION 1
2
3BEGIN TRANSACTION;
4
5-- useraccounts table
6CREATE TABLE UserAccounts (
7 PrincipalID CHAR(36) primary key,
8 ScopeID CHAR(36) NOT NULL,
9 FirstName VARCHAR(64) NOT NULL,
10 LastName VARCHAR(64) NOT NULL,
11 Email VARCHAR(64),
12 ServiceURLs TEXT,
13 Created INT(11),
14 UserLevel integer NOT NULL DEFAULT 0,
15 UserFlags integer NOT NULL DEFAULT 0,
16 UserTitle varchar(64) NOT NULL DEFAULT ''
17);
18
19COMMIT;
20
21:VERSION 2
22
23BEGIN TRANSACTION;
24
25INSERT INTO UserAccounts (PrincipalID, ScopeID, FirstName, LastName, Email, ServiceURLs, Created) SELECT `UUID` AS PrincipalID, '00000000-0000-0000-0000-000000000000' AS ScopeID, username AS FirstName, surname AS LastName, '' as Email, '' AS ServiceURLs, created as Created FROM users;
26
27COMMIT;