metaforecast/prisma/migrations/20220603165310_cascade_delete_frontpage/migration.sql
2022-06-03 20:03:13 +03:00

6 lines
249 B
SQL

-- DropForeignKey
ALTER TABLE "FrontpageId" DROP CONSTRAINT "FrontpageId_id_fkey";
-- AddForeignKey
ALTER TABLE "FrontpageId" ADD CONSTRAINT "FrontpageId_id_fkey" FOREIGN KEY ("id") REFERENCES "questions"("id") ON DELETE CASCADE ON UPDATE CASCADE;