diff options
author | Charles Krinke | 2008-11-09 00:53:54 +0000 |
---|---|---|
committer | Charles Krinke | 2008-11-09 00:53:54 +0000 |
commit | 62bc9c2e8ec75c85cab7358205691d8d61df7e26 (patch) | |
tree | e00c8b698abcf33f9b075cebe58d0b46f8b9ef0c /OpenSim/Data/MSSQL | |
parent | Refactor the detectparams variable from 'd' to (diff) | |
download | opensim-SC_OLD-62bc9c2e8ec75c85cab7358205691d8d61df7e26.zip opensim-SC_OLD-62bc9c2e8ec75c85cab7358205691d8d61df7e26.tar.gz opensim-SC_OLD-62bc9c2e8ec75c85cab7358205691d8d61df7e26.tar.bz2 opensim-SC_OLD-62bc9c2e8ec75c85cab7358205691d8d61df7e26.tar.xz |
Mantis#2591. Thank you kindly, Ruud Lathrop for a patch that:
This patch is two script that fixes a issue when adding more
then 1 avatar to estateban/estatemanager list. It removes a
key and adds a index to the tables.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/002_EstateStore.sql | 25 | ||||
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/003_EstateStore.sql | 25 |
2 files changed, 50 insertions, 0 deletions
diff --git a/OpenSim/Data/MSSQL/Resources/002_EstateStore.sql b/OpenSim/Data/MSSQL/Resources/002_EstateStore.sql new file mode 100644 index 0000000..86c5cb6 --- /dev/null +++ b/OpenSim/Data/MSSQL/Resources/002_EstateStore.sql | |||
@@ -0,0 +1,25 @@ | |||
1 | BEGIN TRANSACTION | ||
2 | |||
3 | ALTER TABLE dbo.estate_managers DROP CONSTRAINT PK_estate_managers | ||
4 | |||
5 | CREATE NONCLUSTERED INDEX IX_estate_managers ON dbo.estate_managers | ||
6 | ( | ||
7 | EstateID | ||
8 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
9 | |||
10 | ALTER TABLE dbo.estate_groups DROP CONSTRAINT PK_estate_groups | ||
11 | |||
12 | CREATE NONCLUSTERED INDEX IX_estate_groups ON dbo.estate_groups | ||
13 | ( | ||
14 | EstateID | ||
15 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
16 | |||
17 | |||
18 | ALTER TABLE dbo.estate_users DROP CONSTRAINT PK_estate_users | ||
19 | |||
20 | CREATE NONCLUSTERED INDEX IX_estate_users ON dbo.estate_users | ||
21 | ( | ||
22 | EstateID | ||
23 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
24 | |||
25 | COMMIT | ||
diff --git a/OpenSim/Data/MSSQL/Resources/003_EstateStore.sql b/OpenSim/Data/MSSQL/Resources/003_EstateStore.sql new file mode 100644 index 0000000..7dd0ec8 --- /dev/null +++ b/OpenSim/Data/MSSQL/Resources/003_EstateStore.sql | |||
@@ -0,0 +1,25 @@ | |||
1 | BEGIN TRANSACTION | ||
2 | |||
3 | CREATE TABLE dbo.Tmp_estateban | ||
4 | ( | ||
5 | EstateID int NOT NULL, | ||
6 | bannedUUID varchar(36) NOT NULL, | ||
7 | bannedIp varchar(16) NULL, | ||
8 | bannedIpHostMask varchar(16) NULL, | ||
9 | bannedNameMask varchar(64) NULL | ||
10 | ) ON [PRIMARY] | ||
11 | |||
12 | IF EXISTS(SELECT * FROM dbo.estateban) | ||
13 | EXEC('INSERT INTO dbo.Tmp_estateban (EstateID, bannedUUID, bannedIp, bannedIpHostMask, bannedNameMask) | ||
14 | SELECT EstateID, bannedUUID, bannedIp, bannedIpHostMask, bannedNameMask FROM dbo.estateban') | ||
15 | |||
16 | DROP TABLE dbo.estateban | ||
17 | |||
18 | EXECUTE sp_rename N'dbo.Tmp_estateban', N'estateban', 'OBJECT' | ||
19 | |||
20 | CREATE NONCLUSTERED INDEX IX_estateban ON dbo.estateban | ||
21 | ( | ||
22 | EstateID | ||
23 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
24 | |||
25 | COMMIT | ||