Skip to content

Commit

Permalink
GAP-2531: Cascade delete grant export tables createdby column
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicwest committed Mar 29, 2024
1 parent 78e684a commit f40daca
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
alter table public.grant_export
drop constraint grant_export_created_by_fkey,
add constraint grant_export_created_by_fkey
foreign key (created_by)
references public.grant_admin (grant_admin_id) match simple
on delete cascade
on update no action;

alter table public.grant_export_batch
drop constraint grant_export_batch_created_by_fkey,
add constraint grant_export_batch_created_by_fkey
foreign key (created_by)
references public.grant_admin (grant_admin_id) match simple
on delete cascade
on update no action;

0 comments on commit f40daca

Please sign in to comment.