S2OJ/web/app/upgrade/20_problem_difficulty/up.sql

4 lines
206 B
MySQL
Raw Normal View History

ALTER TABLE `problems` ADD `difficulty` int NOT NULL DEFAULT '-1' AFTER `submit_num`;
ALTER TABLE `problems` MODIFY `extra_config` json NOT NULL;
2022-12-05 03:54:58 +00:00
ALTER TABLE `problems` ADD KEY `difficulty` (`difficulty`);