metaforecast/prisma/migrations/20220422193152_frontpage_ids/migration.sql
2022-04-22 23:50:39 +04:00

11 lines
318 B
SQL

-- CreateTable
CREATE TABLE "FrontpageId" (
"id" TEXT NOT NULL
);
-- CreateIndex
CREATE UNIQUE INDEX "FrontpageId_id_key" ON "FrontpageId"("id");
-- AddForeignKey
ALTER TABLE "FrontpageId" ADD CONSTRAINT "FrontpageId_id_fkey" FOREIGN KEY ("id") REFERENCES "questions"("id") ON DELETE RESTRICT ON UPDATE CASCADE;