diff options
Diffstat (limited to 'OpenSim/Data/SQLite/Resources/EstateStore.migrations')
-rw-r--r-- | OpenSim/Data/SQLite/Resources/EstateStore.migrations | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/Resources/EstateStore.migrations b/OpenSim/Data/SQLite/Resources/EstateStore.migrations new file mode 100644 index 0000000..37fa1d9 --- /dev/null +++ b/OpenSim/Data/SQLite/Resources/EstateStore.migrations | |||
@@ -0,0 +1,69 @@ | |||
1 | :VERSION 10 | ||
2 | |||
3 | BEGIN TRANSACTION; | ||
4 | |||
5 | CREATE TABLE IF NOT EXISTS estate_groups ( | ||
6 | EstateID int(10) NOT NULL, | ||
7 | uuid char(36) NOT NULL | ||
8 | ); | ||
9 | CREATE INDEX estate_groups_estate_id on estate_groups(EstateID); | ||
10 | |||
11 | CREATE TABLE IF NOT EXISTS estate_managers ( | ||
12 | EstateID int(10) NOT NULL, | ||
13 | uuid char(36) NOT NULL | ||
14 | ); | ||
15 | CREATE INDEX estate_managers_estate_id on estate_managers(EstateID); | ||
16 | |||
17 | CREATE TABLE IF NOT EXISTS estate_map ( | ||
18 | RegionID char(36) NOT NULL default '00000000-0000-0000-0000-000000000000', | ||
19 | EstateID int(11) NOT NULL | ||
20 | ); | ||
21 | CREATE INDEX estate_map_estate_id on estate_map(EstateID); | ||
22 | CREATE UNIQUE INDEX estate_map_region_id on estate_map(RegionID); | ||
23 | |||
24 | CREATE TABLE IF NOT EXISTS estate_settings ( | ||
25 | EstateID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
26 | EstateName varchar(64) default NULL, | ||
27 | AbuseEmailToEstateOwner tinyint(4) NOT NULL, | ||
28 | DenyAnonymous tinyint(4) NOT NULL, | ||
29 | ResetHomeOnTeleport tinyint(4) NOT NULL, | ||
30 | FixedSun tinyint(4) NOT NULL, | ||
31 | DenyTransacted tinyint(4) NOT NULL, | ||
32 | BlockDwell tinyint(4) NOT NULL, | ||
33 | DenyIdentified tinyint(4) NOT NULL, | ||
34 | AllowVoice tinyint(4) NOT NULL, | ||
35 | UseGlobalTime tinyint(4) NOT NULL, | ||
36 | PricePerMeter int(11) NOT NULL, | ||
37 | TaxFree tinyint(4) NOT NULL, | ||
38 | AllowDirectTeleport tinyint(4) NOT NULL, | ||
39 | RedirectGridX int(11) NOT NULL, | ||
40 | RedirectGridY int(11) NOT NULL, | ||
41 | ParentEstateID int(10) NOT NULL, | ||
42 | SunPosition double NOT NULL, | ||
43 | EstateSkipScripts tinyint(4) NOT NULL, | ||
44 | BillableFactor float NOT NULL, | ||
45 | PublicAccess tinyint(4) NOT NULL, | ||
46 | AbuseEmail varchar(255) not null default '', | ||
47 | EstateOwner varchar(36) not null default '', | ||
48 | DenyMinors tinyint not null default 0, | ||
49 | AllowLandmark tinyint not null default '1', | ||
50 | AllowParcelChanges tinyint not null default '1', | ||
51 | AllowSetHome tinyint not null default '1'); | ||
52 | |||
53 | CREATE TABLE IF NOT EXISTS estate_users ( | ||
54 | EstateID int(10) NOT NULL, | ||
55 | uuid char(36) NOT NULL | ||
56 | ); | ||
57 | CREATE INDEX estate_users_estate_id on estate_users(EstateID); | ||
58 | |||
59 | CREATE TABLE IF NOT EXISTS estateban ( | ||
60 | EstateID int(10) NOT NULL, | ||
61 | bannedUUID varchar(36) NOT NULL, | ||
62 | bannedIp varchar(16) NOT NULL, | ||
63 | bannedIpHostMask varchar(16) NOT NULL, | ||
64 | bannedNameMask varchar(64) default NULL | ||
65 | ); | ||
66 | CREATE INDEX estate_ban_estate_id on estateban(EstateID); | ||
67 | |||
68 | COMMIT; | ||
69 | |||