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

3 lines
146 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;