Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
feat(contest): delete all unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
FranGuam committed May 7, 2024
1 parent 481bde3 commit d0fbd86
Show file tree
Hide file tree
Showing 23 changed files with 90 additions and 297 deletions.
342 changes: 45 additions & 297 deletions metadata/tables.yaml

Large diffs are not rendered by default.

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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest" drop column "contest_type" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest" drop column "status" cascade;
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";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP table "public"."contest_code";
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest_room" drop column "updated_at" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest_room" drop column "result" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest_team" drop column "score" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest_team" drop column "status" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest_team" drop column "status2" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest_team" drop column "contest_score" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest_team" drop column "member_num" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."contest_team" drop column "submitted_code_num" cascade;

0 comments on commit d0fbd86

Please sign in to comment.