From 018e435f3183cc02b07ae4175caa867f9fb2c4dd Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 6 Nov 2022 14:01:11 +0800 Subject: [PATCH] fix(db/submissions): submission judger column --- db/app_uoj233.sql | 4 ++-- web/app/upgrade/14_sync_from_uoj.ac/up.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/app_uoj233.sql b/db/app_uoj233.sql index 4aeabd4..0de2efe 100644 --- a/db/app_uoj233.sql +++ b/db/app_uoj233.sql @@ -822,7 +822,7 @@ CREATE TABLE `submissions` ( `tot_size` int NOT NULL, `judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `judge_time` datetime DEFAULT NULL, - `judger` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `judger` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `result` mediumblob NOT NULL, `status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `result_error` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, @@ -868,7 +868,7 @@ CREATE TABLE `submissions_history` ( `submission_id` int UNSIGNED NOT NULL, `judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `judge_time` datetime DEFAULT NULL, - `judger` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `judger` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `result` mediumblob NOT NULL, `status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `status_details` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', diff --git a/web/app/upgrade/14_sync_from_uoj.ac/up.sql b/web/app/upgrade/14_sync_from_uoj.ac/up.sql index 6f683c9..9a972a4 100644 --- a/web/app/upgrade/14_sync_from_uoj.ac/up.sql +++ b/web/app/upgrade/14_sync_from_uoj.ac/up.sql @@ -19,7 +19,7 @@ CREATE TABLE `submissions_history` ( `submission_id` int UNSIGNED NOT NULL, `judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `judge_time` datetime DEFAULT NULL, - `judger` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `judger` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `result` mediumblob NOT NULL, `status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `status_details` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', @@ -153,7 +153,7 @@ ALTER TABLE `search_requests` ALTER TABLE `submissions` ADD `judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' AFTER `tot_size`, - ADD `judger` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' AFTER `judge_time`, + ADD `judger` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' AFTER `judge_time`, ADD `hide_score_to_others` tinyint(1) NOT NULL DEFAULT '0' AFTER `score`, ADD `hidden_score` int DEFAULT NULL AFTER `hide_score_to_others`; ALTER TABLE `submissions`