From 663662adf52c7497a19714855ab7948b3d674fe3 Mon Sep 17 00:00:00 2001 From: xiangmy21 <2248278431@qq.com> Date: Sun, 7 Apr 2024 21:37:45 +0800 Subject: [PATCH] fix(contest): contest_name -> fullname --- metadata/tables.yaml | 18 +++++++++--------- .../down.sql | 1 + .../up.sql | 1 + 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 migrations/1712494702592_alter_table_public_contest_alter_column_contest_name/down.sql create mode 100644 migrations/1712494702592_alter_table_public_contest_alter_column_contest_name/up.sql diff --git a/metadata/tables.yaml b/metadata/tables.yaml index a095182..77fa8d3 100644 --- a/metadata/tables.yaml +++ b/metadata/tables.yaml @@ -137,7 +137,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date @@ -155,7 +155,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date @@ -173,7 +173,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date @@ -191,7 +191,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date @@ -209,7 +209,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date @@ -228,7 +228,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date @@ -250,7 +250,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date @@ -272,7 +272,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date @@ -294,7 +294,7 @@ columns: - arena_switch - code_upload_switch - - contest_name + - fullname - contest_type - description - end_date diff --git a/migrations/1712494702592_alter_table_public_contest_alter_column_contest_name/down.sql b/migrations/1712494702592_alter_table_public_contest_alter_column_contest_name/down.sql new file mode 100644 index 0000000..3d38ed3 --- /dev/null +++ b/migrations/1712494702592_alter_table_public_contest_alter_column_contest_name/down.sql @@ -0,0 +1 @@ +alter table "public"."contest" rename column "fullname" to "contest_name"; diff --git a/migrations/1712494702592_alter_table_public_contest_alter_column_contest_name/up.sql b/migrations/1712494702592_alter_table_public_contest_alter_column_contest_name/up.sql new file mode 100644 index 0000000..4d68ff6 --- /dev/null +++ b/migrations/1712494702592_alter_table_public_contest_alter_column_contest_name/up.sql @@ -0,0 +1 @@ +alter table "public"."contest" rename column "contest_name" to "fullname";