mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
chore: consolidate migrations
This commit is contained in:
committed by
Scott Stevenson
parent
5fddba61be
commit
2ef107d80a
@@ -1 +0,0 @@
|
||||
DROP TABLE "public"."quest_role";
|
||||
@@ -1 +1 @@
|
||||
CREATE TABLE "public"."quest_role"("quest_id" UUID NOT NULL, "role" text NOT NULL, "rank" integer NOT NULL, PRIMARY KEY ("quest_id","role") , FOREIGN KEY ("quest_id") REFERENCES "public"."quest"("id") ON UPDATE restrict ON DELETE cascade, FOREIGN KEY ("role") REFERENCES "public"."PlayerRole"("role") ON UPDATE restrict ON DELETE restrict, UNIQUE ("quest_id"));
|
||||
CREATE TABLE "public"."quest_role"("quest_id" UUID NOT NULL, "role" text NOT NULL, "rank" integer, PRIMARY KEY ("quest_id","role") , FOREIGN KEY ("quest_id") REFERENCES "public"."quest"("id") ON UPDATE restrict ON DELETE cascade, FOREIGN KEY ("role") REFERENCES "public"."PlayerRole"("role") ON UPDATE restrict ON DELETE restrict, UNIQUE ("quest_id"));
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
alter table "public"."quest_role" add constraint "quest_role_quest_id_key" unique ("quest_id");
|
||||
@@ -1 +0,0 @@
|
||||
ALTER TABLE "public"."PlayerRole" DROP COLUMN "isBasic";
|
||||
@@ -1 +1 @@
|
||||
ALTER TABLE "public"."PlayerRole" ADD COLUMN "isBasic" boolean NULL DEFAULT true;
|
||||
ALTER TABLE "public"."PlayerRole" ADD COLUMN "basic" boolean NULL DEFAULT true;
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
ALTER TABLE "public"."quest_role" ALTER COLUMN "rank" SET NOT NULL;
|
||||
@@ -1 +0,0 @@
|
||||
ALTER TABLE "public"."quest_role" ALTER COLUMN "rank" DROP NOT NULL;
|
||||
@@ -1 +0,0 @@
|
||||
alter table "public"."PlayerRole" rename column "basic" to "isBasic";
|
||||
@@ -1 +0,0 @@
|
||||
alter table "public"."PlayerRole" rename column "isBasic" to "basic";
|
||||
Reference in New Issue
Block a user