aboutsummaryrefslogtreecommitdiff
path: root/prisma/migrations/20230810051657_ondelete_cascade/migration.sql
blob: a521884d6dbb4f51184eb253eebabe2f45a1494c (plain) (blame)
1
2
3
4
5
-- DropForeignKey
ALTER TABLE "WatchListEpisode" DROP CONSTRAINT "WatchListEpisode_userProfileId_fkey";

-- AddForeignKey
ALTER TABLE "WatchListEpisode" ADD CONSTRAINT "WatchListEpisode_userProfileId_fkey" FOREIGN KEY ("userProfileId") REFERENCES "UserProfile"("name") ON DELETE CASCADE ON UPDATE CASCADE;