diff options
author | AlexRa | 2010-05-06 23:16:36 +0300 |
---|---|---|
committer | AlexRa | 2010-05-16 17:04:50 +0300 |
commit | dfeb9a0b5c07a85ec8aed591206468cee83ce637 (patch) | |
tree | 412dbee487945ed78c9d2598d2310a02c411ef96 /OpenSim/Data/MSSQL/Resources/002_GridStore.sql | |
parent | Migrations for SQLite converted to new format (diff) | |
download | opensim-SC-dfeb9a0b5c07a85ec8aed591206468cee83ce637.zip opensim-SC-dfeb9a0b5c07a85ec8aed591206468cee83ce637.tar.gz opensim-SC-dfeb9a0b5c07a85ec8aed591206468cee83ce637.tar.bz2 opensim-SC-dfeb9a0b5c07a85ec8aed591206468cee83ce637.tar.xz |
MS SQL migrations converted to the new format
Diffstat (limited to 'OpenSim/Data/MSSQL/Resources/002_GridStore.sql')
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/002_GridStore.sql | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/OpenSim/Data/MSSQL/Resources/002_GridStore.sql b/OpenSim/Data/MSSQL/Resources/002_GridStore.sql deleted file mode 100644 index f5901cb..0000000 --- a/OpenSim/Data/MSSQL/Resources/002_GridStore.sql +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | BEGIN TRANSACTION | ||
2 | |||
3 | CREATE TABLE Tmp_regions | ||
4 | ( | ||
5 | uuid varchar(36) COLLATE Latin1_General_CI_AS NOT NULL, | ||
6 | regionHandle bigint NULL, | ||
7 | regionName varchar(20) NULL, | ||
8 | regionRecvKey varchar(128) NULL, | ||
9 | regionSendKey varchar(128) NULL, | ||
10 | regionSecret varchar(128) NULL, | ||
11 | regionDataURI varchar(128) NULL, | ||
12 | serverIP varchar(64) NULL, | ||
13 | serverPort int NULL, | ||
14 | serverURI varchar(255) NULL, | ||
15 | locX int NULL, | ||
16 | locY int NULL, | ||
17 | locZ int NULL, | ||
18 | eastOverrideHandle bigint NULL, | ||
19 | westOverrideHandle bigint NULL, | ||
20 | southOverrideHandle bigint NULL, | ||
21 | northOverrideHandle bigint NULL, | ||
22 | regionAssetURI varchar(255) NULL, | ||
23 | regionAssetRecvKey varchar(128) NULL, | ||
24 | regionAssetSendKey varchar(128) NULL, | ||
25 | regionUserURI varchar(255) NULL, | ||
26 | regionUserRecvKey varchar(128) NULL, | ||
27 | regionUserSendKey varchar(128) NULL, | ||
28 | regionMapTexture varchar(36) NULL, | ||
29 | serverHttpPort int NULL, | ||
30 | serverRemotingPort int NULL, | ||
31 | owner_uuid varchar(36) NULL, | ||
32 | originUUID varchar(36) NOT NULL DEFAULT ('00000000-0000-0000-0000-000000000000') | ||
33 | ) ON [PRIMARY] | ||
34 | |||
35 | IF EXISTS(SELECT * FROM regions) | ||
36 | EXEC('INSERT INTO Tmp_regions (uuid, regionHandle, regionName, regionRecvKey, regionSendKey, regionSecret, regionDataURI, serverIP, serverPort, serverURI, locX, locY, locZ, eastOverrideHandle, westOverrideHandle, southOverrideHandle, northOverrideHandle, regionAssetURI, regionAssetRecvKey, regionAssetSendKey, regionUserURI, regionUserRecvKey, regionUserSendKey, regionMapTexture, serverHttpPort, serverRemotingPort, owner_uuid) | ||
37 | SELECT CONVERT(varchar(36), uuid), CONVERT(bigint, regionHandle), CONVERT(varchar(20), regionName), CONVERT(varchar(128), regionRecvKey), CONVERT(varchar(128), regionSendKey), CONVERT(varchar(128), regionSecret), CONVERT(varchar(128), regionDataURI), CONVERT(varchar(64), serverIP), CONVERT(int, serverPort), serverURI, CONVERT(int, locX), CONVERT(int, locY), CONVERT(int, locZ), CONVERT(bigint, eastOverrideHandle), CONVERT(bigint, westOverrideHandle), CONVERT(bigint, southOverrideHandle), CONVERT(bigint, northOverrideHandle), regionAssetURI, CONVERT(varchar(128), regionAssetRecvKey), CONVERT(varchar(128), regionAssetSendKey), regionUserURI, CONVERT(varchar(128), regionUserRecvKey), CONVERT(varchar(128), regionUserSendKey), CONVERT(varchar(36), regionMapTexture), CONVERT(int, serverHttpPort), CONVERT(int, serverRemotingPort), owner_uuid FROM regions') | ||
38 | |||
39 | DROP TABLE regions | ||
40 | |||
41 | EXECUTE sp_rename N'Tmp_regions', N'regions', 'OBJECT' | ||
42 | |||
43 | ALTER TABLE regions ADD CONSTRAINT | ||
44 | PK__regions__uuid PRIMARY KEY CLUSTERED | ||
45 | ( | ||
46 | uuid | ||
47 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
48 | |||
49 | COMMIT \ No newline at end of file | ||