diff --git a/packages/prisma/migrations/20220723001233_/migration.sql b/packages/prisma/migrations/20220723001233_/migration.sql new file mode 100644 index 0000000000..d71fbd3785 --- /dev/null +++ b/packages/prisma/migrations/20220723001233_/migration.sql @@ -0,0 +1,5 @@ +-- DropForeignKey +ALTER TABLE "Membership" DROP CONSTRAINT "Membership_teamId_fkey"; + +-- AddForeignKey +ALTER TABLE "Membership" ADD CONSTRAINT "Membership_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE RESTRICT ON UPDATE CASCADE;