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_member
- 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/1710748785469_set_fk_public_contest_team_member_team_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_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; |
5 changes: 5 additions & 0 deletions
5
migrations/1710748785469_set_fk_public_contest_team_member_team_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_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; |
5 changes: 5 additions & 0 deletions
5
migrations/1710748811122_set_fk_public_contest_team_member_user_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_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; |
5 changes: 5 additions & 0 deletions
5
migrations/1710748811122_set_fk_public_contest_team_member_user_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_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; |