diff options
Diffstat (limited to 'OpenSim/Data/MSSQL/Resources/004_UserStore.sql')
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/004_UserStore.sql | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/OpenSim/Data/MSSQL/Resources/004_UserStore.sql b/OpenSim/Data/MSSQL/Resources/004_UserStore.sql index f3e223e..08f1a1d 100644 --- a/OpenSim/Data/MSSQL/Resources/004_UserStore.sql +++ b/OpenSim/Data/MSSQL/Resources/004_UserStore.sql | |||
@@ -27,32 +27,3 @@ CREATE NONCLUSTERED INDEX IX_userfriends_friendID ON userfriends | |||
27 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | 27 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] |
28 | 28 | ||
29 | COMMIT | 29 | COMMIT |
30 | BEGIN TRANSACTION | ||
31 | |||
32 | CREATE TABLE Tmp_userfriends | ||
33 | ( | ||
34 | ownerID varchar(36) NOT NULL, | ||
35 | friendID varchar(36) NOT NULL, | ||
36 | friendPerms int NOT NULL, | ||
37 | datetimestamp int NOT NULL | ||
38 | ) ON [PRIMARY] | ||
39 | |||
40 | IF EXISTS(SELECT * FROM dbo.userfriends) | ||
41 | EXEC('INSERT INTO dbo.Tmp_userfriends (ownerID, friendID, friendPerms, datetimestamp) | ||
42 | SELECT CONVERT(varchar(36), ownerID), CONVERT(varchar(36), friendID), CONVERT(int, friendPerms), CONVERT(int, datetimestamp) FROM dbo.userfriends WITH (HOLDLOCK TABLOCKX)') | ||
43 | |||
44 | DROP TABLE dbo.userfriends | ||
45 | |||
46 | EXECUTE sp_rename N'Tmp_userfriends', N'userfriends', 'OBJECT' | ||
47 | |||
48 | CREATE NONCLUSTERED INDEX IX_userfriends_ownerID ON userfriends | ||
49 | ( | ||
50 | ownerID | ||
51 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
52 | |||
53 | CREATE NONCLUSTERED INDEX IX_userfriends_friendID ON userfriends | ||
54 | ( | ||
55 | friendID | ||
56 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
57 | |||
58 | COMMIT | ||