This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
forked from eesast/hasura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fkey): foreign key rule update for contest_team
- Loading branch information
Showing
4 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
migrations/1710748089715_set_fk_public_contest_team_contest_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
5 changes: 5 additions & 0 deletions
5
migrations/1710748089715_set_fk_public_contest_team_contest_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
5 changes: 5 additions & 0 deletions
5
migrations/1710748106580_set_fk_public_contest_team_team_leader_uuid/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
5 changes: 5 additions & 0 deletions
5
migrations/1710748106580_set_fk_public_contest_team_team_leader_uuid/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |