From da29b8893a0b7dcd904de53973ad44848bd267fd Mon Sep 17 00:00:00 2001 From: zomars Date: Thu, 21 Jul 2022 16:12:10 -0600 Subject: [PATCH] Adds missing migration --- .../prisma/migrations/20220721183745_/migration.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/prisma/migrations/20220721183745_/migration.sql diff --git a/packages/prisma/migrations/20220721183745_/migration.sql b/packages/prisma/migrations/20220721183745_/migration.sql new file mode 100644 index 0000000000..3ee21c8100 --- /dev/null +++ b/packages/prisma/migrations/20220721183745_/migration.sql @@ -0,0 +1,11 @@ +-- DropForeignKey +ALTER TABLE "DestinationCalendar" DROP CONSTRAINT "DestinationCalendar_eventTypeId_fkey"; + +-- DropForeignKey +ALTER TABLE "DestinationCalendar" DROP CONSTRAINT "DestinationCalendar_userId_fkey"; + +-- AddForeignKey +ALTER TABLE "DestinationCalendar" ADD CONSTRAINT "DestinationCalendar_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "DestinationCalendar" ADD CONSTRAINT "DestinationCalendar_eventTypeId_fkey" FOREIGN KEY ("eventTypeId") REFERENCES "EventType"("id") ON DELETE SET NULL ON UPDATE CASCADE;