diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/002_UserStore.sql | 9 | ||||
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/003_UserStore.sql | 15 | ||||
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/004_UserStore.sql | 29 |
3 files changed, 0 insertions, 53 deletions
diff --git a/OpenSim/Data/MSSQL/Resources/002_UserStore.sql b/OpenSim/Data/MSSQL/Resources/002_UserStore.sql index a3b5868..402eddf 100644 --- a/OpenSim/Data/MSSQL/Resources/002_UserStore.sql +++ b/OpenSim/Data/MSSQL/Resources/002_UserStore.sql | |||
@@ -7,12 +7,3 @@ ALTER TABLE users ADD customType varchar(32) not null default ''; | |||
7 | ALTER TABLE users ADD partner varchar(36) not null default '00000000-0000-0000-0000-000000000000'; | 7 | ALTER TABLE users ADD partner varchar(36) not null default '00000000-0000-0000-0000-000000000000'; |
8 | 8 | ||
9 | COMMIT | 9 | COMMIT |
10 | BEGIN TRANSACTION | ||
11 | |||
12 | ALTER TABLE users ADD homeRegionID varchar(36) NOT NULL default '00000000-0000-0000-0000-000000000000'; | ||
13 | ALTER TABLE users ADD userFlags int NOT NULL default 0; | ||
14 | ALTER TABLE users ADD godLevel int NOT NULL default 0; | ||
15 | ALTER TABLE users ADD customType varchar(32) not null default ''; | ||
16 | ALTER TABLE users ADD partner varchar(36) not null default '00000000-0000-0000-0000-000000000000'; | ||
17 | |||
18 | COMMIT | ||
diff --git a/OpenSim/Data/MSSQL/Resources/003_UserStore.sql b/OpenSim/Data/MSSQL/Resources/003_UserStore.sql index c2821e6..cb507c9 100644 --- a/OpenSim/Data/MSSQL/Resources/003_UserStore.sql +++ b/OpenSim/Data/MSSQL/Resources/003_UserStore.sql | |||
@@ -13,18 +13,3 @@ CREATE NONCLUSTERED INDEX IX_avatarattachments ON dbo.avatarattachments | |||
13 | 13 | ||
14 | 14 | ||
15 | COMMIT | 15 | COMMIT |
16 | BEGIN TRANSACTION | ||
17 | |||
18 | CREATE TABLE [avatarattachments] ( | ||
19 | [UUID] varchar(36) NOT NULL | ||
20 | , [attachpoint] int NOT NULL | ||
21 | , [item] varchar(36) NOT NULL | ||
22 | , [asset] varchar(36) NOT NULL) | ||
23 | |||
24 | CREATE NONCLUSTERED INDEX IX_avatarattachments ON dbo.avatarattachments | ||
25 | ( | ||
26 | UUID | ||
27 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
28 | |||
29 | |||
30 | COMMIT | ||
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 | ||