diff options
author | Melanie | 2010-05-18 19:02:40 +0100 |
---|---|---|
committer | Melanie | 2010-05-18 19:03:16 +0100 |
commit | e260610c0096ac5323c32a7a593e5521997eb732 (patch) | |
tree | 5d936d6450d580cf24e133047df7ff8d759de557 /OpenSim/Data/MSSQL/Resources/004_GridStore.sql | |
parent | Allow remote admin to be used on a different port from the main region port (diff) | |
parent | MS SQL migrations converted to the new format (diff) | |
download | opensim-SC-e260610c0096ac5323c32a7a593e5521997eb732.zip opensim-SC-e260610c0096ac5323c32a7a593e5521997eb732.tar.gz opensim-SC-e260610c0096ac5323c32a7a593e5521997eb732.tar.bz2 opensim-SC-e260610c0096ac5323c32a7a593e5521997eb732.tar.xz |
Merge branch 'Migrations'
This merges AlexRa's work on migration streamlining. This merge is experimental.
If it causes issues, feel free to back out.
Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Data/MSSQL/Resources/004_GridStore.sql')
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/004_GridStore.sql | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/OpenSim/Data/MSSQL/Resources/004_GridStore.sql b/OpenSim/Data/MSSQL/Resources/004_GridStore.sql deleted file mode 100644 index 6456c95..0000000 --- a/OpenSim/Data/MSSQL/Resources/004_GridStore.sql +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | /* To prevent any potential data loss issues, you should review this script in detail before running it outside the context of the database designer.*/ | ||
2 | BEGIN TRANSACTION | ||
3 | |||
4 | CREATE TABLE dbo.Tmp_regions | ||
5 | ( | ||
6 | uuid uniqueidentifier NOT NULL, | ||
7 | regionHandle bigint NULL, | ||
8 | regionName varchar(20) NULL, | ||
9 | regionRecvKey varchar(128) NULL, | ||
10 | regionSendKey varchar(128) NULL, | ||
11 | regionSecret varchar(128) NULL, | ||
12 | regionDataURI varchar(128) NULL, | ||
13 | serverIP varchar(64) NULL, | ||
14 | serverPort int NULL, | ||
15 | serverURI varchar(255) NULL, | ||
16 | locX int NULL, | ||
17 | locY int NULL, | ||
18 | locZ int NULL, | ||
19 | eastOverrideHandle bigint NULL, | ||
20 | westOverrideHandle bigint NULL, | ||
21 | southOverrideHandle bigint NULL, | ||
22 | northOverrideHandle bigint NULL, | ||
23 | regionAssetURI varchar(255) NULL, | ||
24 | regionAssetRecvKey varchar(128) NULL, | ||
25 | regionAssetSendKey varchar(128) NULL, | ||
26 | regionUserURI varchar(255) NULL, | ||
27 | regionUserRecvKey varchar(128) NULL, | ||
28 | regionUserSendKey varchar(128) NULL, | ||
29 | regionMapTexture uniqueidentifier NULL, | ||
30 | serverHttpPort int NULL, | ||
31 | serverRemotingPort int NULL, | ||
32 | owner_uuid uniqueidentifier NOT NULL, | ||
33 | originUUID uniqueidentifier NOT NULL DEFAULT ('00000000-0000-0000-0000-000000000000') | ||
34 | ) ON [PRIMARY] | ||
35 | |||
36 | IF EXISTS(SELECT * FROM dbo.regions) | ||
37 | EXEC('INSERT INTO dbo.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, originUUID) | ||
38 | SELECT CONVERT(uniqueidentifier, uuid), regionHandle, regionName, regionRecvKey, regionSendKey, regionSecret, regionDataURI, serverIP, serverPort, serverURI, locX, locY, locZ, eastOverrideHandle, westOverrideHandle, southOverrideHandle, northOverrideHandle, regionAssetURI, regionAssetRecvKey, regionAssetSendKey, regionUserURI, regionUserRecvKey, regionUserSendKey, CONVERT(uniqueidentifier, regionMapTexture), serverHttpPort, serverRemotingPort, CONVERT(uniqueidentifier, owner_uuid), CONVERT(uniqueidentifier, originUUID) FROM dbo.regions WITH (HOLDLOCK TABLOCKX)') | ||
39 | |||
40 | DROP TABLE dbo.regions | ||
41 | |||
42 | EXECUTE sp_rename N'dbo.Tmp_regions', N'regions', 'OBJECT' | ||
43 | |||
44 | ALTER TABLE dbo.regions ADD CONSTRAINT | ||
45 | PK__regions__uuid PRIMARY KEY CLUSTERED | ||
46 | ( | ||
47 | uuid | ||
48 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
49 | |||
50 | CREATE NONCLUSTERED INDEX IX_regions_name ON dbo.regions | ||
51 | ( | ||
52 | regionName | ||
53 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
54 | |||
55 | CREATE NONCLUSTERED INDEX IX_regions_handle ON dbo.regions | ||
56 | ( | ||
57 | regionHandle | ||
58 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
59 | |||
60 | CREATE NONCLUSTERED INDEX IX_regions_override ON dbo.regions | ||
61 | ( | ||
62 | eastOverrideHandle, | ||
63 | westOverrideHandle, | ||
64 | southOverrideHandle, | ||
65 | northOverrideHandle | ||
66 | ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
67 | |||
68 | COMMIT | ||