EstateStore.migrations 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. :VERSION 12
  2. BEGIN TRANSACTION;
  3. -- ----------------------------
  4. -- Table structure for estate_groups
  5. -- ----------------------------
  6. CREATE TABLE IF NOT EXISTS "public"."estate_groups" (
  7. "EstateID" int4 NOT NULL,
  8. "uuid" uuid NOT NULL
  9. )
  10. WITH (OIDS=FALSE);
  11. -- Indexes structure for table estate_groups
  12. -- ----------------------------
  13. CREATE INDEX IF NOT EXISTS "ix_estate_groups" ON "public"."estate_groups" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);
  14. -- ----------------------------
  15. -- Table structure for estate_managers
  16. -- ----------------------------
  17. CREATE TABLE IF NOT EXISTS "public"."estate_managers" (
  18. "EstateID" int4 NOT NULL,
  19. "uuid" uuid NOT NULL
  20. )
  21. WITH (OIDS=FALSE);
  22. -- Indexes structure for table estate_managers
  23. -- ----------------------------
  24. CREATE INDEX IF NOT EXISTS "ix_estate_managers" ON "public"."estate_managers" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);
  25. -- ----------------------------
  26. -- Table structure for estate_map
  27. -- ----------------------------
  28. CREATE TABLE IF NOT EXISTS "public"."estate_map" (
  29. "RegionID" uuid NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'::uuid,
  30. "EstateID" int4 NOT NULL
  31. )
  32. WITH (OIDS=FALSE);
  33. -- Primary key structure for table estate_map
  34. -- ----------------------------
  35. ALTER TABLE "public"."estate_map" ADD PRIMARY KEY ("RegionID") NOT DEFERRABLE INITIALLY IMMEDIATE;
  36. -- ----------------------------
  37. -- SEQUENCE estate_settings_id
  38. -- ----------------------------
  39. CREATE SEQUENCE IF NOT EXISTS "public"."estate_settings_id"
  40. INCREMENT 100
  41. MINVALUE 1
  42. MAXVALUE 9223372036854775807
  43. START 100
  44. CACHE 1;
  45. -- ----------------------------
  46. -- Table structure for estate_settings
  47. -- ----------------------------
  48. CREATE TABLE IF NOT EXISTS "public"."estate_settings" (
  49. "EstateID" int4 NOT NULL DEFAULT nextval('estate_settings_id'::regclass),
  50. "EstateName" varchar(64) DEFAULT NULL::character varying COLLATE "default",
  51. "AbuseEmailToEstateOwner" bool NOT NULL,
  52. "DenyAnonymous" bool NOT NULL,
  53. "ResetHomeOnTeleport" bool NOT NULL,
  54. "FixedSun" bool NOT NULL,
  55. "DenyTransacted" bool NOT NULL,
  56. "BlockDwell" bool NOT NULL,
  57. "DenyIdentified" bool NOT NULL,
  58. "AllowVoice" bool NOT NULL,
  59. "UseGlobalTime" bool NOT NULL,
  60. "PricePerMeter" int4 NOT NULL,
  61. "TaxFree" bool NOT NULL,
  62. "AllowDirectTeleport" bool NOT NULL,
  63. "RedirectGridX" int4 NOT NULL,
  64. "RedirectGridY" int4 NOT NULL,
  65. "ParentEstateID" int4 NOT NULL,
  66. "SunPosition" float8 NOT NULL,
  67. "EstateSkipScripts" bool NOT NULL,
  68. "BillableFactor" float8 NOT NULL,
  69. "PublicAccess" bool NOT NULL,
  70. "AbuseEmail" varchar(255) NOT NULL COLLATE "default",
  71. "EstateOwner" uuid NOT NULL,
  72. "DenyMinors" bool NOT NULL,
  73. "AllowLandmark" bool NOT NULL DEFAULT true,
  74. "AllowParcelChanges" bool NOT NULL DEFAULT true,
  75. "AllowSetHome" bool NOT NULL DEFAULT true
  76. )
  77. WITH (OIDS=FALSE);
  78. -- Primary key structure for table estate_settings
  79. -- ----------------------------
  80. ALTER TABLE "public"."estate_settings" ADD PRIMARY KEY ("EstateID") NOT DEFERRABLE INITIALLY IMMEDIATE;
  81. -- ----------------------------
  82. -- Table structure for estate_users
  83. -- ----------------------------
  84. CREATE TABLE IF NOT EXISTS "public"."estate_users" (
  85. "EstateID" int4 NOT NULL,
  86. "uuid" uuid NOT NULL
  87. )
  88. WITH (OIDS=FALSE);
  89. -- Indexes structure for table estate_users
  90. -- ----------------------------
  91. CREATE INDEX IF NOT EXISTS "ix_estate_users" ON "public"."estate_users" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);
  92. -- ----------------------------
  93. -- Table structure for estateban
  94. -- ----------------------------
  95. CREATE TABLE IF NOT EXISTS "public"."estateban" (
  96. "EstateID" int4 NOT NULL,
  97. "bannedUUID" uuid NOT NULL,
  98. "bannedIp" varchar(16) COLLATE "default",
  99. "bannedIpHostMask" varchar(16) COLLATE "default",
  100. "bannedNameMask" varchar(64) COLLATE "default"
  101. )
  102. WITH (OIDS=FALSE);
  103. -- Indexes structure for table estateban
  104. -- ----------------------------
  105. CREATE INDEX IF NOT EXISTS "ix_estateban" ON "public"."estateban" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);
  106. COMMIT;
  107. :VERSION 14
  108. BEGIN TRANSACTION;
  109. ALTER TABLE "public"."estateban"
  110. ADD COLUMN "banningUUID" uuid NOT NULL,
  111. ADD COLUMN "banTime" int4 NOT NULL DEFAULT 0;
  112. COMMIT;
  113. :VERSION 15
  114. BEGIN TRANSACTION;
  115. ALTER TABLE "public"."estate_settings"
  116. ADD COLUMN "AllowEnviromentOverride" bool NOT NULL;
  117. COMMIT;