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.
feat(contest): delete all unused fields
- Loading branch information
Showing
23 changed files
with
90 additions
and
297 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
migrations/1715063931438_alter_table_public_contest_drop_column_contest_type/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" alter column "contest_type" drop not null; | ||
alter table "public"."contest" add column "contest_type" text; |
1 change: 1 addition & 0 deletions
1
migrations/1715063931438_alter_table_public_contest_drop_column_contest_type/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" drop column "contest_type" cascade; |
3 changes: 3 additions & 0 deletions
3
migrations/1715063947225_alter_table_public_contest_drop_column_status/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 @@ | ||
alter table "public"."contest" alter column "status" set default ''000'::text'; | ||
alter table "public"."contest" alter column "status" drop not null; | ||
alter table "public"."contest" add column "status" text; |
1 change: 1 addition & 0 deletions
1
migrations/1715063947225_alter_table_public_contest_drop_column_status/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" drop column "status" cascade; |
3 changes: 3 additions & 0 deletions
3
migrations/1715063980529_drop_table_public_contest_code/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 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP table "public"."contest_code"; |
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 @@ | ||
DROP table "public"."contest_code"; |
3 changes: 3 additions & 0 deletions
3
migrations/1715064066508_alter_table_public_contest_room_drop_column_updated_at/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 @@ | ||
alter table "public"."contest_room" alter column "updated_at" set default now(); | ||
alter table "public"."contest_room" alter column "updated_at" drop not null; | ||
alter table "public"."contest_room" add column "updated_at" timestamptz; |
1 change: 1 addition & 0 deletions
1
migrations/1715064066508_alter_table_public_contest_room_drop_column_updated_at/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_room" drop column "updated_at" cascade; |
2 changes: 2 additions & 0 deletions
2
migrations/1715064080796_alter_table_public_contest_room_drop_column_result/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_room" alter column "result" drop not null; | ||
alter table "public"."contest_room" add column "result" text; |
1 change: 1 addition & 0 deletions
1
migrations/1715064080796_alter_table_public_contest_room_drop_column_result/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_room" drop column "result" cascade; |
4 changes: 4 additions & 0 deletions
4
migrations/1715064278689_alter_table_public_contest_team_drop_column_score/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 @@ | ||
comment on column "public"."contest_team"."score" is E'比赛队伍'; | ||
alter table "public"."contest_team" alter column "score" set default ''200'::text'; | ||
alter table "public"."contest_team" alter column "score" drop not null; | ||
alter table "public"."contest_team" add column "score" text; |
1 change: 1 addition & 0 deletions
1
migrations/1715064278689_alter_table_public_contest_team_drop_column_score/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 "score" cascade; |
3 changes: 3 additions & 0 deletions
3
migrations/1715064294668_alter_table_public_contest_team_drop_column_status/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"."status" is E'比赛队伍'; | ||
alter table "public"."contest_team" alter column "status" drop not null; | ||
alter table "public"."contest_team" add column "status" text; |
1 change: 1 addition & 0 deletions
1
migrations/1715064294668_alter_table_public_contest_team_drop_column_status/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 "status" cascade; |
3 changes: 3 additions & 0 deletions
3
migrations/1715064307917_alter_table_public_contest_team_drop_column_status2/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"."status2" is E'比赛队伍'; | ||
alter table "public"."contest_team" alter column "status2" drop not null; | ||
alter table "public"."contest_team" add column "status2" text; |
1 change: 1 addition & 0 deletions
1
migrations/1715064307917_alter_table_public_contest_team_drop_column_status2/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 "status2" cascade; |
3 changes: 3 additions & 0 deletions
3
migrations/1715064321419_alter_table_public_contest_team_drop_column_contest_score/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"."contest_score" is E'比赛队伍'; | ||
alter table "public"."contest_team" alter column "contest_score" drop not null; | ||
alter table "public"."contest_team" add column "contest_score" text; |
1 change: 1 addition & 0 deletions
1
migrations/1715064321419_alter_table_public_contest_team_drop_column_contest_score/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 "contest_score" cascade; |
4 changes: 4 additions & 0 deletions
4
migrations/1715064336396_alter_table_public_contest_team_drop_column_member_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,4 @@ | ||
comment on column "public"."contest_team"."member_num" is E'比赛队伍'; | ||
alter table "public"."contest_team" alter column "member_num" set default 1; | ||
alter table "public"."contest_team" alter column "member_num" drop not null; | ||
alter table "public"."contest_team" add column "member_num" int4; |
1 change: 1 addition & 0 deletions
1
migrations/1715064336396_alter_table_public_contest_team_drop_column_member_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_team" drop column "member_num" cascade; |
4 changes: 4 additions & 0 deletions
4
...ons/1715064353564_alter_table_public_contest_team_drop_column_submitted_code_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,4 @@ | ||
comment on column "public"."contest_team"."submitted_code_num" is E'比赛队伍'; | ||
alter table "public"."contest_team" alter column "submitted_code_num" set default 0; | ||
alter table "public"."contest_team" alter column "submitted_code_num" drop not null; | ||
alter table "public"."contest_team" add column "submitted_code_num" int4; |
1 change: 1 addition & 0 deletions
1
...tions/1715064353564_alter_table_public_contest_team_drop_column_submitted_code_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_team" drop column "submitted_code_num" cascade; |