Skip to content

Commit

Permalink
fix(backend): grocery migration
Browse files Browse the repository at this point in the history
  • Loading branch information
insuusvenerati committed Sep 28, 2022
1 parent 115f902 commit c747df1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- DropForeignKey
ALTER TABLE "grocery" DROP CONSTRAINT "grocery_recipe_id_fkey";

-- AddForeignKey
ALTER TABLE "grocery" ADD CONSTRAINT "grocery_recipe_id_fkey" FOREIGN KEY ("recipe_id") REFERENCES "recipe"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

0 comments on commit c747df1

Please sign in to comment.