2022-10-21 12:42:48 +00:00
|
|
|
RENAME TABLE groups_assignments TO assignments;
|
2022-10-21 22:34:12 +00:00
|
|
|
ALTER TABLE `assignments` ADD COLUMN `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
|
|
ALTER TABLE `assignments` DROP PRIMARY KEY, ADD PRIMARY KEY (`id`);
|
2022-10-21 12:42:48 +00:00
|
|
|
ALTER TABLE `assignments` ADD COLUMN `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
|
|
|
ALTER TABLE `assignments` CHANGE COLUMN `end_time` `deadline` datetime NOT NULL;
|
|
|
|
ALTER TABLE `countdowns` CHANGE COLUMN `end_time` `endtime` datetime NOT NULL;
|
2022-10-22 00:16:39 +00:00
|
|
|
ALTER TABLE `submissions` DROP KEY `score`;
|