2022-10-21 12:42:48 +00:00
|
|
|
RENAME TABLE assignments TO groups_assignments;
|
2022-10-21 22:48:04 +00:00
|
|
|
ALTER TABLE `groups_assignments` DROP COLUMN `id`;
|
|
|
|
ALTER TABLE `groups_assignments` ADD PRIMARY KEY (`group_id`, `list_id`);
|
2022-10-21 12:42:48 +00:00
|
|
|
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;
|
2022-10-22 00:16:39 +00:00
|
|
|
ALTER TABLE `submissions` ADD KEY `score` (`problem_id`, `submitter`, `score`);
|