diff options
author | AlexRa | 2010-05-06 22:44:57 +0300 |
---|---|---|
committer | AlexRa | 2010-05-18 22:16:10 +0300 |
commit | 6e7b3950d70b0dbe3b765d596adc534a6ca3a2a9 (patch) | |
tree | d9a809d417ed531fbde0f041156b449d4030708a /OpenSim/Data/SQLite/Resources/UserAccount.migrations | |
parent | Converted MySQL migration history to the new format (diff) | |
download | opensim-SC-6e7b3950d70b0dbe3b765d596adc534a6ca3a2a9.zip opensim-SC-6e7b3950d70b0dbe3b765d596adc534a6ca3a2a9.tar.gz opensim-SC-6e7b3950d70b0dbe3b765d596adc534a6ca3a2a9.tar.bz2 opensim-SC-6e7b3950d70b0dbe3b765d596adc534a6ca3a2a9.tar.xz |
Migrations for SQLite converted to new format
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/Resources/UserAccount.migrations (renamed from OpenSim/Data/SQLite/Resources/001_UserAccount.sql) | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Data/SQLite/Resources/001_UserAccount.sql b/OpenSim/Data/SQLite/Resources/UserAccount.migrations index c38d9a7..854fe69 100644 --- a/OpenSim/Data/SQLite/Resources/001_UserAccount.sql +++ b/OpenSim/Data/SQLite/Resources/UserAccount.migrations | |||
@@ -1,4 +1,6 @@ | |||
1 | BEGIN TRANSACTION; | 1 | :VERSION 1 |
2 | |||
3 | BEGIN TRANSACTION; | ||
2 | 4 | ||
3 | -- useraccounts table | 5 | -- useraccounts table |
4 | CREATE TABLE UserAccounts ( | 6 | CREATE TABLE UserAccounts ( |
@@ -14,4 +16,12 @@ CREATE TABLE UserAccounts ( | |||
14 | UserTitle varchar(64) NOT NULL DEFAULT '' | 16 | UserTitle varchar(64) NOT NULL DEFAULT '' |
15 | ); | 17 | ); |
16 | 18 | ||
17 | COMMIT; \ No newline at end of file | 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; | ||