chore: add upgrader for #36

This commit is contained in:
Baoshuo Ren 2023-02-04 18:24:57 +08:00
parent 33ba0c9d4a
commit b13b035213
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 6 additions and 1 deletions

View File

@ -994,7 +994,8 @@ INSERT INTO `upgrades` (`name`, `status`, `updated_at`) VALUES
('20_problem_difficulty', 'up', now()),
('21_problem_difficulty', 'up', now()),
('28_remote_judge', 'up', now()),
('31_problem_resources', 'up', now());
('31_problem_resources', 'up', now()),
('36_decimal_score_range', 'up', now());
/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */;
UNLOCK TABLES;

View File

@ -0,0 +1,4 @@
ALTER TABLE `contests_submissions` MODIFY `score` DECIMAL(15, 10) NOT NULL;
ALTER TABLE `submissions` MODIFY `score` DECIMAL(15, 10) DEFAULT NULL;
ALTER TABLE `submissions` MODIFY `hidden_score` DECIMAL(15, 10) DEFAULT NULL;
ALTER TABLE `submissions_history` MODIFY `score` DECIMAL(15, 10) DEFAULT NULL;