mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 13:28:41 +00:00
chore: add upgrader for #36
This commit is contained in:
parent
33ba0c9d4a
commit
b13b035213
@ -994,7 +994,8 @@ INSERT INTO `upgrades` (`name`, `status`, `updated_at`) VALUES
|
|||||||
('20_problem_difficulty', 'up', now()),
|
('20_problem_difficulty', 'up', now()),
|
||||||
('21_problem_difficulty', 'up', now()),
|
('21_problem_difficulty', 'up', now()),
|
||||||
('28_remote_judge', '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 */;
|
/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
4
web/app/upgrade/36_decimal_score_range/up.sql
Normal file
4
web/app/upgrade/36_decimal_score_range/up.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user