chore: add upgrader

This commit is contained in:
Baoshuo Ren 2023-01-24 17:37:16 +08:00
parent 459956049f
commit 4701742eb2
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
3 changed files with 9 additions and 1 deletions

View File

@ -992,7 +992,8 @@ INSERT INTO `upgrades` (`name`, `status`, `updated_at`) VALUES
('16_list_v3', 'up', now()),
('18_user_permissions', 'up', now()),
('20_problem_difficulty', 'up', now()),
('21_problem_difficulty', 'up', now());
('21_problem_difficulty', 'up', now()),
('28_remote_judge', 'up', now());
/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */;
UNLOCK TABLES;

View File

@ -0,0 +1 @@
https://github.com/renbaoshuo/S2OJ/pull/28

View File

@ -0,0 +1,6 @@
ALTER TABLE `problems` ADD `type` varchar(20) NOT NULL DEFAULT 'local' AFTER `difficulty`;
ALTER TABLE `problems` ADD KEY `type` (`type`);
ALTER TABLE `problems_contents` ADD `remote_content` longtext COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' AFTER `id`;
insert into judger_info (judger_name, password, ip, display_name, description) values ('remote_judger', '_judger_password_', 'uoj-remote-judger', '远端评测机', '用于桥接远端 OJ 评测机的虚拟评测机。');