mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 04:28:41 +00:00
chore: add upgrader
This commit is contained in:
parent
459956049f
commit
4701742eb2
@ -992,7 +992,8 @@ INSERT INTO `upgrades` (`name`, `status`, `updated_at`) VALUES
|
|||||||
('16_list_v3', 'up', now()),
|
('16_list_v3', 'up', now()),
|
||||||
('18_user_permissions', 'up', now()),
|
('18_user_permissions', 'up', now()),
|
||||||
('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());
|
||||||
/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `upgrades` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
1
web/app/upgrade/28_remote_judge/README.md
Normal file
1
web/app/upgrade/28_remote_judge/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://github.com/renbaoshuo/S2OJ/pull/28
|
6
web/app/upgrade/28_remote_judge/up.sql
Normal file
6
web/app/upgrade/28_remote_judge/up.sql
Normal 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 评测机的虚拟评测机。');
|
Loading…
Reference in New Issue
Block a user