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_member
Browse files Browse the repository at this point in the history
  • Loading branch information
FranGuam committed Mar 18, 2024
1 parent 38783c5 commit 20a57d3
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_member" drop constraint "contest_team_member_team_id_fkey",
add constraint "contest_team_member_team_id_fkey"
foreign key ("team_id")
references "public"."contest_team"
("team_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_member" drop constraint "contest_team_member_team_id_fkey",
add constraint "contest_team_member_team_id_fkey"
foreign key ("team_id")
references "public"."contest_team"
("team_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_member" drop constraint "contest_team_member_user_uuid_fkey",
add constraint "contest_team_member_user_uuid_fkey"
foreign key ("user_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_member" drop constraint "contest_team_member_user_uuid_fkey",
add constraint "contest_team_member_user_uuid_fkey"
foreign key ("user_uuid")
references "public"."users"
("uuid") on update restrict on delete cascade;

0 comments on commit 20a57d3

Please sign in to comment.