aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorDiva Canto2010-02-21 09:39:12 -0800
committerDiva Canto2010-02-21 09:39:12 -0800
commitbd5a4dab0c06bf7faf05df5be7a1c93c5e025724 (patch)
tree859aa4597b3484c5db96560824ebb2efc2eac4af /OpenSim/Data
parent* Added SQlite connector for AvatarData. Tested -- works. (diff)
downloadopensim-SC-bd5a4dab0c06bf7faf05df5be7a1c93c5e025724.zip
opensim-SC-bd5a4dab0c06bf7faf05df5be7a1c93c5e025724.tar.gz
opensim-SC-bd5a4dab0c06bf7faf05df5be7a1c93c5e025724.tar.bz2
opensim-SC-bd5a4dab0c06bf7faf05df5be7a1c93c5e025724.tar.xz
Bug fixes on field names in order to make data import work from old users table to new UserAccounts table.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/SQLite/Resources/002_UserAccount.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/Resources/002_UserAccount.sql b/OpenSim/Data/SQLite/Resources/002_UserAccount.sql
index c0b3d7b..c7a6293 100644
--- a/OpenSim/Data/SQLite/Resources/002_UserAccount.sql
+++ b/OpenSim/Data/SQLite/Resources/002_UserAccount.sql
@@ -1,5 +1,5 @@
1BEGIN TRANSACTION; 1BEGIN TRANSACTION;
2 2
3INSERT INTO UserAccounts (PrincipalID, ScopeID, FirstName, LastName, Email, ServiceURLs, Created) SELECT `UUID` AS PrincipalID, '00000000-0000-0000-0000-000000000000' AS ScopeID, username AS FirstName, lastname AS LastName, email as Email, CONCAT('AssetServerURI=', userAssetURI, ' InventoryServerURI=', userInventoryURI, ' GatewayURI= HomeURI=') AS ServiceURLs, created as Created FROM users; 3INSERT 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;
4 4
5COMMIT; 5COMMIT;