Skip to content

Commit

Permalink
Add constraint on visit table (#608)
Browse files Browse the repository at this point in the history
* fix: delete report with linked visit entry

* fix: backend dockerfile

* fix: dockerfile

* fix: add prisma migration

---------

Co-authored-by: orig <[email protected]>
  • Loading branch information
origranot and orig authored Dec 16, 2023
1 parent 2882889 commit 7138223
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 "Visit" DROP CONSTRAINT "Visit_linkId_fkey";

-- AddForeignKey
ALTER TABLE "Visit" ADD CONSTRAINT "Visit_linkId_fkey" FOREIGN KEY ("linkId") REFERENCES "Link"("id") ON DELETE CASCADE ON UPDATE CASCADE;

0 comments on commit 7138223

Please sign in to comment.