S2OJ/web/app/upgrade/20_problem_difficulty/up.sql
Baoshuo dfb47c4b32
All checks were successful
continuous-integration/drone/push Build is passing
feat(web/problems): difficulty filter
2022-12-05 11:54:58 +08:00

4 lines
206 B
SQL

ALTER TABLE `problems` ADD `difficulty` int NOT NULL DEFAULT '-1' AFTER `submit_num`;
ALTER TABLE `problems` MODIFY `extra_config` json NOT NULL;
ALTER TABLE `problems` ADD KEY `difficulty` (`difficulty`);