Skip to content

Commit

Permalink
fix: alter notifications constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Sep 22, 2023
1 parent c8d0d24 commit d684c44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions migrations/1695381202_alter_notifications_constraint.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE public.notifications
DROP CONSTRAINT fk_notifications_client_id,
ADD CONSTRAINT fk_notifications_client_id
FOREIGN KEY (client_id)
REFERENCES public.clients (id)
ON DELETE CASCADE;

0 comments on commit d684c44

Please sign in to comment.