Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
fix(fkey): foreign key rule update for contest_team
Browse files Browse the repository at this point in the history
  • Loading branch information
FranGuam committed Mar 18, 2024
1 parent 8f12fcc commit 58f3abf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_team" drop constraint "contest_team_contest_id_fkey",
add constraint "contest_team_contest_id_fkey"
foreign key ("contest_id")
references "public"."contest"
("id") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_team" drop constraint "contest_team_contest_id_fkey",
add constraint "contest_team_contest_id_fkey"
foreign key ("contest_id")
references "public"."contest"
("id") on update restrict on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_team" drop constraint "contest_team_team_leader_uuid_fkey",
add constraint "contest_team_team_leader_uuid_fkey"
foreign key ("team_leader_uuid")
references "public"."users"
("uuid") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."contest_team" drop constraint "contest_team_team_leader_uuid_fkey",
add constraint "contest_team_team_leader_uuid_fkey"
foreign key ("team_leader_uuid")
references "public"."users"
("uuid") on update restrict on delete cascade;

0 comments on commit 58f3abf

Please sign in to comment.