diff options
author | Sean Dague | 2008-07-18 15:10:20 +0000 |
---|---|---|
committer | Sean Dague | 2008-07-18 15:10:20 +0000 |
commit | e2a3be254f0407bd6ef19a0875248b2b8b86baac (patch) | |
tree | 4644d8aaaa5b9ff0bc799d1af6205efc765091dd /OpenSim/Data/SQLite | |
parent | found a better pattern for SaveOrUpdate with nhibernate (diff) | |
download | opensim-SC-e2a3be254f0407bd6ef19a0875248b2b8b86baac.zip opensim-SC-e2a3be254f0407bd6ef19a0875248b2b8b86baac.tar.gz opensim-SC-e2a3be254f0407bd6ef19a0875248b2b8b86baac.tar.bz2 opensim-SC-e2a3be254f0407bd6ef19a0875248b2b8b86baac.tar.xz |
fix typo in create index that caused the entire migration to fail.
put some drop table if exist clauses in here to hopefully let this
migration work for people that are in an intermediary broken state
right now.
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/Resources/006_RegionStore.sql | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/Resources/006_RegionStore.sql b/OpenSim/Data/SQLite/Resources/006_RegionStore.sql index 025f1a9..8449fbb 100644 --- a/OpenSim/Data/SQLite/Resources/006_RegionStore.sql +++ b/OpenSim/Data/SQLite/Resources/006_RegionStore.sql | |||
@@ -1,15 +1,22 @@ | |||
1 | drop table if exists `estate_groups`; | ||
1 | CREATE TABLE `estate_groups` ( | 2 | CREATE TABLE `estate_groups` ( |
2 | `EstateID` int(10) NOT NULL, | 3 | `EstateID` int(10) NOT NULL, |
3 | `uuid` char(36) NOT NULL | 4 | `uuid` char(36) NOT NULL |
4 | ); | 5 | ); |
6 | |||
7 | drop table if exists `estate_managers`; | ||
5 | CREATE TABLE `estate_managers` ( | 8 | CREATE TABLE `estate_managers` ( |
6 | `EstateID` int(10) NOT NULL, | 9 | `EstateID` int(10) NOT NULL, |
7 | `uuid` char(36) NOT NULL | 10 | `uuid` char(36) NOT NULL |
8 | ); | 11 | ); |
12 | |||
13 | drop table if exists `estate_map`; | ||
9 | CREATE TABLE `estate_map` ( | 14 | CREATE TABLE `estate_map` ( |
10 | `RegionID` char(36) NOT NULL default '00000000-0000-0000-0000-000000000000', | 15 | `RegionID` char(36) NOT NULL default '00000000-0000-0000-0000-000000000000', |
11 | `EstateID` int(11) NOT NULL | 16 | `EstateID` int(11) NOT NULL |
12 | ); | 17 | ); |
18 | |||
19 | drop table if exists `estate_settings`; | ||
13 | CREATE TABLE `estate_settings` ( | 20 | CREATE TABLE `estate_settings` ( |
14 | `EstateID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | 21 | `EstateID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, |
15 | `EstateName` varchar(64) default NULL, | 22 | `EstateName` varchar(64) default NULL, |
@@ -39,6 +46,8 @@ CREATE TABLE `estate_users` ( | |||
39 | `EstateID` int(10) NOT NULL, | 46 | `EstateID` int(10) NOT NULL, |
40 | `uuid` char(36) NOT NULL | 47 | `uuid` char(36) NOT NULL |
41 | ); | 48 | ); |
49 | |||
50 | drop table if exists `estateban`; | ||
42 | CREATE TABLE `estateban` ( | 51 | CREATE TABLE `estateban` ( |
43 | `EstateID` int(10) NOT NULL, | 52 | `EstateID` int(10) NOT NULL, |
44 | `bannedUUID` varchar(36) NOT NULL, | 53 | `bannedUUID` varchar(36) NOT NULL, |
@@ -46,6 +55,7 @@ CREATE TABLE `estateban` ( | |||
46 | `bannedIpHostMask` varchar(16) NOT NULL, | 55 | `bannedIpHostMask` varchar(16) NOT NULL, |
47 | `bannedNameMask` varchar(64) default NULL | 56 | `bannedNameMask` varchar(64) default NULL |
48 | ); | 57 | ); |
58 | |||
49 | drop table if exists `regionsettings`; | 59 | drop table if exists `regionsettings`; |
50 | CREATE TABLE `regionsettings` ( | 60 | CREATE TABLE `regionsettings` ( |
51 | `regionUUID` char(36) NOT NULL, | 61 | `regionUUID` char(36) NOT NULL, |
@@ -84,9 +94,10 @@ CREATE TABLE `regionsettings` ( | |||
84 | `Sandbox` tinyint(4) NOT NULL, | 94 | `Sandbox` tinyint(4) NOT NULL, |
85 | PRIMARY KEY (`regionUUID`) | 95 | PRIMARY KEY (`regionUUID`) |
86 | ); | 96 | ); |
97 | |||
87 | CREATE INDEX `estate_ban_estate_id` on `estateban`(`EstateID`); | 98 | CREATE INDEX `estate_ban_estate_id` on `estateban`(`EstateID`); |
88 | CREATE INDEX `estate_groups_estate_id` on `estate_groups`(`EstateID`); | 99 | CREATE INDEX `estate_groups_estate_id` on `estate_groups`(`EstateID`); |
89 | CREATE INDEX `estate_managers_estate_id` on `estate_managers`(`EstateID`); | 100 | CREATE INDEX `estate_managers_estate_id` on `estate_managers`(`EstateID`); |
90 | CREATE INDEX `estate_map_estate_id` on `estate_map`(`EstateID`); | 101 | CREATE INDEX `estate_map_estate_id` on `estate_map`(`EstateID`); |
91 | CREATE UNIQUE INDEX `estate_map_region)id` on `estate_map`(`RegionID`); | 102 | CREATE UNIQUE INDEX `estate_map_region_id` on `estate_map`(`RegionID`); |
92 | CREATE INDEX `estate_users_estate_id` on `estate_users`(`EstateID`); | 103 | CREATE INDEX `estate_users_estate_id` on `estate_users`(`EstateID`); |