1
0

EstateStore.migrations 2.8 KB

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