From 2fa5694ec9857f208b6fe4d0890fd2ab8ac1b8bf Mon Sep 17 00:00:00 2001
From: StrawberryFride
Date: Wed, 24 Feb 2010 16:42:39 +0000
Subject: MSSQL Additions for Presence Refactor branch. Most functionality
 tested and works, some outstanding issues around login location and border
 crossings on y axis.

Signed-off-by: Melanie <melanie@t-data.com>
---
 OpenSim/Data/MSSQL/Resources/002_UserAccount.sql | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 OpenSim/Data/MSSQL/Resources/002_UserAccount.sql

(limited to 'OpenSim/Data/MSSQL/Resources/002_UserAccount.sql')

diff --git a/OpenSim/Data/MSSQL/Resources/002_UserAccount.sql b/OpenSim/Data/MSSQL/Resources/002_UserAccount.sql
new file mode 100644
index 0000000..89d1f34
--- /dev/null
+++ b/OpenSim/Data/MSSQL/Resources/002_UserAccount.sql
@@ -0,0 +1,12 @@
+BEGIN TRANSACTION
+
+INSERT 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, (
+'AssetServerURI=' +  
+userAssetURI + ' InventoryServerURI='  + userInventoryURI + ' GatewayURI= HomeURI=') AS ServiceURLs, 
+created as Created FROM users;
+
+
+COMMIT
\ No newline at end of file
-- 
cgit v1.1

