fix(db/submissions): submission judger column

This commit is contained in:
Baoshuo Ren 2022-11-06 14:01:11 +08:00
parent f025594eea
commit 018e435f31
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 4 additions and 4 deletions

View File

@ -822,7 +822,7 @@ CREATE TABLE `submissions` (
`tot_size` int NOT NULL, `tot_size` int NOT NULL,
`judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`judge_time` datetime DEFAULT NULL, `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, `result` mediumblob NOT NULL,
`status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`result_error` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT 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, `submission_id` int UNSIGNED NOT NULL,
`judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`judge_time` datetime DEFAULT NULL, `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, `result` mediumblob NOT NULL,
`status` varchar(20) COLLATE utf8mb4_unicode_ci 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 '', `status_details` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',

View File

@ -19,7 +19,7 @@ CREATE TABLE `submissions_history` (
`submission_id` int UNSIGNED NOT NULL, `submission_id` int UNSIGNED NOT NULL,
`judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`judge_time` datetime DEFAULT NULL, `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, `result` mediumblob NOT NULL,
`status` varchar(20) COLLATE utf8mb4_unicode_ci 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 '', `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` ALTER TABLE `submissions`
ADD `judge_reason` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' AFTER `tot_size`, 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 `hide_score_to_others` tinyint(1) NOT NULL DEFAULT '0' AFTER `score`,
ADD `hidden_score` int DEFAULT NULL AFTER `hide_score_to_others`; ADD `hidden_score` int DEFAULT NULL AFTER `hide_score_to_others`;
ALTER TABLE `submissions` ALTER TABLE `submissions`