Skip to content

Commit

Permalink
Remove EXISTS causing migration failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Aug 23, 2022
1 parent 3137436 commit 549ef02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ALTER TABLE "session" DROP CONSTRAINT IF EXISTS "session_website_id_fkey";
ALTER TABLE "website" DROP CONSTRAINT IF EXISTS "website_user_id_fkey";

-- AddForeignKey
ALTER TABLE "event" ADD CONSTRAINT EXISTS "event_session_id_fkey" FOREIGN KEY ("session_id") REFERENCES "session"("session_id") ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE "event" ADD CONSTRAINT "event_session_id_fkey" FOREIGN KEY ("session_id") REFERENCES "session"("session_id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "event" ADD CONSTRAINT "event_website_id_fkey" FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE RESTRICT ON UPDATE CASCADE;
Expand Down

0 comments on commit 549ef02

Please sign in to comment.