diff options
author | AlexRa | 2010-05-06 23:16:36 +0300 |
---|---|---|
committer | AlexRa | 2010-05-18 22:16:13 +0300 |
commit | 020f38774fbe8e0f53b0cb28ab49b378b9dcd325 (patch) | |
tree | 5d936d6450d580cf24e133047df7ff8d759de557 /OpenSim/Data/MSSQL/Resources/007_EstateStore.sql | |
parent | Migrations for SQLite converted to new format (diff) | |
download | opensim-SC-020f38774fbe8e0f53b0cb28ab49b378b9dcd325.zip opensim-SC-020f38774fbe8e0f53b0cb28ab49b378b9dcd325.tar.gz opensim-SC-020f38774fbe8e0f53b0cb28ab49b378b9dcd325.tar.bz2 opensim-SC-020f38774fbe8e0f53b0cb28ab49b378b9dcd325.tar.xz |
MS SQL migrations converted to the new format
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/007_EstateStore.sql | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/OpenSim/Data/MSSQL/Resources/007_EstateStore.sql b/OpenSim/Data/MSSQL/Resources/007_EstateStore.sql deleted file mode 100644 index c9165b0..0000000 --- a/OpenSim/Data/MSSQL/Resources/007_EstateStore.sql +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | BEGIN TRANSACTION | ||
2 | |||
3 | CREATE TABLE dbo.Tmp_estateban | ||
4 | ( | ||
5 | EstateID int NOT NULL, | ||
6 | bannedUUID uniqueidentifier 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, CONVERT(uniqueidentifier, bannedUUID), bannedIp, bannedIpHostMask, bannedNameMask FROM dbo.estateban WITH (HOLDLOCK TABLOCKX)') | ||
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 | ||