S2OJ/web/app/upgrade/18_user_permissions/up.sql

3 lines
220 B
MySQL
Raw Normal View History

2022-11-12 01:19:25 +00:00
ALTER TABLE `problems_solutions` ADD UNIQUE KEY `unique__blog_id` (`blog_id`);
ALTER TABLE `user_info` MODIFY `usertype` enum('student','teacher','system','banned') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'student';