diff --git a/db/app_uoj233.sql b/db/app_uoj233.sql index 48892b5..03e94c4 100644 --- a/db/app_uoj233.sql +++ b/db/app_uoj233.sql @@ -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; diff --git a/web/app/upgrade/28_remote_judge/README.md b/web/app/upgrade/28_remote_judge/README.md new file mode 100644 index 0000000..2a005c3 --- /dev/null +++ b/web/app/upgrade/28_remote_judge/README.md @@ -0,0 +1 @@ +https://github.com/renbaoshuo/S2OJ/pull/28 diff --git a/web/app/upgrade/28_remote_judge/up.sql b/web/app/upgrade/28_remote_judge/up.sql new file mode 100644 index 0000000..d9ee623 --- /dev/null +++ b/web/app/upgrade/28_remote_judge/up.sql @@ -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 评测机的虚拟评测机。');