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.
- Loading branch information
Showing
13 changed files
with
78 additions
and
28 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
2 changes: 2 additions & 0 deletions
2
migrations/1712107844670_alter_table_public_contest_round_alter_column_maps/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,2 @@ | ||
alter table "public"."contest_round" rename column "map_id" to "maps"; | ||
alter table "public"."contest_round" alter column "maps" set not null; |
2 changes: 2 additions & 0 deletions
2
migrations/1712107844670_alter_table_public_contest_round_alter_column_maps/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,2 @@ | ||
alter table "public"."contest_round" alter column "maps" drop not null; | ||
alter table "public"."contest_round" rename column "maps" to "map_id"; |
1 change: 1 addition & 0 deletions
1
migrations/1712107860339_alter_table_public_contest_round_alter_column_map_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 @@ | ||
alter table "public"."contest_round" alter column "map_id" set default '[]'::text; |
1 change: 1 addition & 0 deletions
1
migrations/1712107860339_alter_table_public_contest_round_alter_column_map_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 @@ | ||
ALTER TABLE "public"."contest_round" ALTER COLUMN "map_id" drop default; |
1 change: 1 addition & 0 deletions
1
migrations/1712109032584_alter_table_public_contest_round_alter_column_map_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 @@ | ||
alter table "public"."contest_round" rename column "maps" to "map_id"; |
1 change: 1 addition & 0 deletions
1
migrations/1712109032584_alter_table_public_contest_round_alter_column_map_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 @@ | ||
alter table "public"."contest_round" rename column "map_id" to "maps"; |
4 changes: 4 additions & 0 deletions
4
migrations/1712109068116_alter_table_public_contest_round_add_column_map_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,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."contest_round" add column "map_id" uuid | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1712109068116_alter_table_public_contest_round_add_column_map_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,2 @@ | ||
alter table "public"."contest_round" add column "map_id" uuid | ||
null; |
1 change: 1 addition & 0 deletions
1
migrations/1712109092044_set_fk_public_contest_round_map_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 @@ | ||
alter table "public"."contest_round" drop constraint "contest_round_map_id_fkey"; |
5 changes: 5 additions & 0 deletions
5
migrations/1712109092044_set_fk_public_contest_round_map_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_round" | ||
add constraint "contest_round_map_id_fkey" | ||
foreign key ("map_id") | ||
references "public"."contest_map" | ||
("map_id") on update restrict on delete set null; |
3 changes: 3 additions & 0 deletions
3
migrations/1712109257893_alter_table_public_contest_round_drop_column_maps/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_round"."maps" is E'正式比赛的每轮(初赛、决赛)信息'; | ||
alter table "public"."contest_round" alter column "maps" drop not null; | ||
alter table "public"."contest_round" add column "maps" text; |
1 change: 1 addition & 0 deletions
1
migrations/1712109257893_alter_table_public_contest_round_drop_column_maps/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_round" drop column "maps" cascade; |