fix: f044ab8ed7
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-10-22 06:48:04 +08:00
parent aed0b04cb5
commit 3cab411f4d
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -1,6 +1,6 @@
RENAME TABLE assignments TO groups_assignments; RENAME TABLE assignments TO groups_assignments;
ALTER TABLE `assignments` DROP PRIMARY KEY, ADD PRIMARY KEY (`group_id`, `list_id`); ALTER TABLE `groups_assignments` DROP COLUMN `id`;
ALTER TABLE `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` DROP COLUMN `create_time`;
ALTER TABLE `groups_assignments` CHANGE COLUMN `deadline` `end_time` datetime NOT NULL; 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 `countdowns` CHANGE COLUMN `endtime` `end_time` datetime NOT NULL;