diff options
author | AlexRa | 2010-05-06 22:44:57 +0300 |
---|---|---|
committer | AlexRa | 2010-05-16 17:04:39 +0300 |
commit | 1ad12851d076094d6fad3ebe604b4cae378eaef3 (patch) | |
tree | 9aa6706c2b890f63f19a5f3c1e05099a2edba000 /OpenSim/Data/SQLite/Resources/UserAccount.migrations | |
parent | Converted MySQL migration history to the new format (diff) | |
download | opensim-SC_OLD-1ad12851d076094d6fad3ebe604b4cae378eaef3.zip opensim-SC_OLD-1ad12851d076094d6fad3ebe604b4cae378eaef3.tar.gz opensim-SC_OLD-1ad12851d076094d6fad3ebe604b4cae378eaef3.tar.bz2 opensim-SC_OLD-1ad12851d076094d6fad3ebe604b4cae378eaef3.tar.xz |
Migrations for SQLite converted to new format
Diffstat (limited to 'OpenSim/Data/SQLite/Resources/UserAccount.migrations')
-rw-r--r-- | OpenSim/Data/SQLite/Resources/UserAccount.migrations | 27 |
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 | |||
3 | BEGIN TRANSACTION; | ||
4 | |||
5 | -- useraccounts table | ||
6 | CREATE 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 | |||
19 | COMMIT; | ||
20 | |||
21 | :VERSION 2 | ||
22 | |||
23 | BEGIN TRANSACTION; | ||
24 | |||
25 | INSERT 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 | |||
27 | COMMIT; | ||