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(user_id): delete team_leader from contest_team & set team_leader_…
…uuid as not-null
- Loading branch information
Showing
5 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
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
1 change: 1 addition & 0 deletions
1
...ions/1710748213008_alter_table_public_contest_team_alter_column_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 @@ | ||
alter table "public"."contest_team" alter column "team_leader_uuid" drop not null; |
1 change: 1 addition & 0 deletions
1
...ations/1710748213008_alter_table_public_contest_team_alter_column_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 @@ | ||
alter table "public"."contest_team" alter column "team_leader_uuid" set not null; |
3 changes: 3 additions & 0 deletions
3
migrations/1710748439277_alter_table_public_contest_team_drop_column_team_leader/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,3 @@ | ||
comment on column "public"."contest_team"."team_leader" is E'比赛队伍'; | ||
alter table "public"."contest_team" alter column "team_leader" drop not null; | ||
alter table "public"."contest_team" add column "team_leader" text; |
1 change: 1 addition & 0 deletions
1
migrations/1710748439277_alter_table_public_contest_team_drop_column_team_leader/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 @@ | ||
alter table "public"."contest_team" drop column "team_leader" cascade; |