mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +00:00
fix(db/submissions): add key for #8
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a28e34e7e9
commit
37843355cd
@ -775,7 +775,8 @@ CREATE TABLE `submissions` (
|
||||
`is_hidden` tinyint(1) NOT NULL,
|
||||
`status_details` varchar(100) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `is_hidden` (`is_hidden`,`problem_id`)
|
||||
KEY `is_hidden` (`is_hidden`,`problem_id`),
|
||||
KEY `score` (`problem_id`, `submitter`, `score`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -4,3 +4,4 @@ ALTER TABLE `assignments` DROP PRIMARY KEY, ADD PRIMARY KEY (`id`);
|
||||
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;
|
||||
ALTER TABLE `submissions` DROP KEY `score`;
|
||||
|
@ -4,3 +4,4 @@ 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`);
|
||||
|
Loading…
Reference in New Issue
Block a user