mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 20:48:41 +00:00
8 lines
480 B
SQL
8 lines
480 B
SQL
RENAME TABLE assignments TO groups_assignments;
|
|
ALTER TABLE `groups_assignments` DROP COLUMN `id`;
|
|
ALTER TABLE `groups_assignments` ADD PRIMARY KEY (`group_id`, `list_id`);
|
|
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;
|
|
ALTER TABLE `submissions` ADD KEY `score` (`problem_id`, `submitter`, `score`);
|