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(contest): one player a row in
contest_player
- Loading branch information
Showing
9 changed files
with
50 additions
and
24 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
...tions/1712109432336_alter_table_public_contest_player_alter_column_players_label/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_player" rename column "player_label" to "players_label"; |
1 change: 1 addition & 0 deletions
1
migrations/1712109432336_alter_table_public_contest_player_alter_column_players_label/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_player" rename column "players_label" to "player_label"; |
3 changes: 3 additions & 0 deletions
3
migrations/1712109496949_alter_table_public_contest_player_drop_column_player_num/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_player"."player_num" is E'记录每个比赛可以允许几队、每队有几个玩家、每个玩家可以选择哪些角色'; | ||
alter table "public"."contest_player" alter column "player_num" drop not null; | ||
alter table "public"."contest_player" add column "player_num" int4; |
1 change: 1 addition & 0 deletions
1
migrations/1712109496949_alter_table_public_contest_player_drop_column_player_num/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_player" drop column "player_num" cascade; |
4 changes: 4 additions & 0 deletions
4
migrations/1712109779166_modify_primarykey_public_contest_player/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,4 @@ | ||
alter table "public"."contest_player" drop constraint "contest_player_pkey"; | ||
alter table "public"."contest_player" | ||
add constraint "contest_player_pkey" | ||
primary key ("contest_id", "team_label"); |
6 changes: 6 additions & 0 deletions
6
migrations/1712109779166_modify_primarykey_public_contest_player/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,6 @@ | ||
BEGIN TRANSACTION; | ||
ALTER TABLE "public"."contest_player" DROP CONSTRAINT "contest_player_pkey"; | ||
|
||
ALTER TABLE "public"."contest_player" | ||
ADD CONSTRAINT "contest_player_pkey" PRIMARY KEY ("contest_id", "team_label", "player_label"); | ||
COMMIT TRANSACTION; |
1 change: 1 addition & 0 deletions
1
...ons/1712110053836_alter_table_public_contest_player_alter_column_roles_available/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_player" ALTER COLUMN "roles_available" drop default; |
1 change: 1 addition & 0 deletions
1
...tions/1712110053836_alter_table_public_contest_player_alter_column_roles_available/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_player" alter column "roles_available" set default '[]'; |