S2OJ/web/app/upgrade/8_group_v2/up.sql

5 lines
275 B
MySQL
Raw Normal View History

2022-10-21 12:42:48 +00:00
RENAME TABLE assignments TO groups_assignments;
ALTER TABLE `groups_assignments` DROP COLUMN `create_time`;
ALTER TABLE `groups_assignments` CHANGE COLUMN `deadline` `end_time` datetime NOT NULL;
ALTER TABLE `countdowns` CHANGE COLUMN `endtime` `end_time` datetime NOT NULL;