1
0

EstateStore.migrations 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. :VERSION 10
  2. BEGIN TRANSACTION;
  3. CREATE TABLE IF NOT EXISTS estate_groups (
  4. EstateID int(10) NOT NULL,
  5. uuid char(36) NOT NULL
  6. );
  7. CREATE INDEX estate_groups_estate_id on estate_groups(EstateID);
  8. CREATE TABLE IF NOT EXISTS estate_managers (
  9. EstateID int(10) NOT NULL,
  10. uuid char(36) NOT NULL
  11. );
  12. CREATE INDEX estate_managers_estate_id on estate_managers(EstateID);
  13. CREATE TABLE IF NOT EXISTS estate_map (
  14. RegionID char(36) NOT NULL default '00000000-0000-0000-0000-000000000000',
  15. EstateID int(11) NOT NULL
  16. );
  17. CREATE INDEX estate_map_estate_id on estate_map(EstateID);
  18. CREATE UNIQUE INDEX estate_map_region_id on estate_map(RegionID);
  19. CREATE TABLE IF NOT EXISTS estate_settings (
  20. EstateID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
  21. EstateName varchar(64) default NULL,
  22. AbuseEmailToEstateOwner tinyint(4) NOT NULL,
  23. DenyAnonymous tinyint(4) NOT NULL,
  24. ResetHomeOnTeleport tinyint(4) NOT NULL,
  25. FixedSun tinyint(4) NOT NULL,
  26. DenyTransacted tinyint(4) NOT NULL,
  27. BlockDwell tinyint(4) NOT NULL,
  28. DenyIdentified tinyint(4) NOT NULL,
  29. AllowVoice tinyint(4) NOT NULL,
  30. UseGlobalTime tinyint(4) NOT NULL,
  31. PricePerMeter int(11) NOT NULL,
  32. TaxFree tinyint(4) NOT NULL,
  33. AllowDirectTeleport tinyint(4) NOT NULL,
  34. RedirectGridX int(11) NOT NULL,
  35. RedirectGridY int(11) NOT NULL,
  36. ParentEstateID int(10) NOT NULL,
  37. SunPosition double NOT NULL,
  38. EstateSkipScripts tinyint(4) NOT NULL,
  39. BillableFactor float NOT NULL,
  40. PublicAccess tinyint(4) NOT NULL,
  41. AbuseEmail varchar(255) not null default '',
  42. EstateOwner varchar(36) not null default '',
  43. DenyMinors tinyint not null default 0,
  44. AllowLandmark tinyint not null default '1',
  45. AllowParcelChanges tinyint not null default '1',
  46. AllowSetHome tinyint not null default '1');
  47. CREATE TABLE IF NOT EXISTS estate_users (
  48. EstateID int(10) NOT NULL,
  49. uuid char(36) NOT NULL
  50. );
  51. CREATE INDEX estate_users_estate_id on estate_users(EstateID);
  52. CREATE TABLE IF NOT EXISTS estateban (
  53. EstateID int(10) NOT NULL,
  54. bannedUUID varchar(36) NOT NULL,
  55. bannedIp varchar(16) NOT NULL,
  56. bannedIpHostMask varchar(16) NOT NULL,
  57. bannedNameMask varchar(64) default NULL
  58. );
  59. CREATE INDEX estate_ban_estate_id on estateban(EstateID);
  60. COMMIT;
  61. :VERSION 11
  62. BEGIN;
  63. ALTER TABLE `estateban` ADD COLUMN `banningUUID` varchar(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000';
  64. ALTER TABLE `estateban` ADD COLUMN `banTime` integer NOT NULL DEFAULT 0;
  65. COMMIT;
  66. :VERSION 12
  67. BEGIN;
  68. ALTER TABLE `estate_settings`
  69. ADD COLUMN `AllowEnviromentOverride` tinyint not null default 0;
  70. COMMIT;