mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Edit seed db function
This commit is contained in:
17
prisma/migrations/20230123044455_/migration.sql
Normal file
17
prisma/migrations/20230123044455_/migration.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "BeerImage" DROP CONSTRAINT "BeerImage_beerPostId_fkey";
|
||||
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "BreweryComment" DROP CONSTRAINT "BreweryComment_breweryPostId_fkey";
|
||||
|
||||
-- DropForeignKey
|
||||
ALTER TABLE "BreweryImage" DROP CONSTRAINT "BreweryImage_breweryPostId_fkey";
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "BreweryComment" ADD CONSTRAINT "BreweryComment_breweryPostId_fkey" FOREIGN KEY ("breweryPostId") REFERENCES "BreweryPost"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "BeerImage" ADD CONSTRAINT "BeerImage_beerPostId_fkey" FOREIGN KEY ("beerPostId") REFERENCES "BeerPost"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "BreweryImage" ADD CONSTRAINT "BreweryImage_breweryPostId_fkey" FOREIGN KEY ("breweryPostId") REFERENCES "BreweryPost"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
Reference in New Issue
Block a user