Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move map layer initialization in migration #518

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions api/prisma/migrations/00_init/migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -697,14 +697,6 @@ CREATE TABLE "user_roles" (
CONSTRAINT "PK_87b8888186ca9769c960e926870" PRIMARY KEY ("user_id")
);

CREATE TABLE "map_layers" (
"id" UUID NOT NULL DEFAULT uuid_generate_v4(),
"name" TEXT NOT NULL,
"jurisdiction_id" TEXT NOT NULL,
"feature_collection" JSONB NOT NULL DEFAULT '{}',
CONSTRAINT "PK_d1bcb10041ba88ffea330dc10d9" PRIMARY KEY ("id")
);

-- CreateIndex
CREATE UNIQUE INDEX "REL_5eb038a51b9cd6872359a687b1" ON "alternate_contact"("mailing_address_id");

Expand Down
2 changes: 0 additions & 2 deletions api/prisma/migrations/01_change_to_prisma/migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1691,5 +1691,3 @@ SET NOT NULL;
ALTER TABLE "paper_applications"
ALTER COLUMN "language"
SET NOT NULL;

ALTER TABLE "map_layers" RENAME CONSTRAINT "PK_d1bcb10041ba88ffea330dc10d9" TO "map_layers_pkey";
7 changes: 7 additions & 0 deletions api/prisma/migrations/02_doorway_to_prisma/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CREATE TABLE "map_layers" (
"id" UUID NOT NULL DEFAULT uuid_generate_v4(),
"name" TEXT NOT NULL,
"jurisdiction_id" TEXT NOT NULL,
"feature_collection" JSONB NOT NULL DEFAULT '{}',
CONSTRAINT "map_layers_pkey" PRIMARY KEY ("id")
);
Loading