From 3cab411f4d9bda6a8a9bb7816bf5e7918c66ceaa Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 22 Oct 2022 06:48:04 +0800 Subject: [PATCH] fix: f044ab8ed74df2ff5cf28bb1cbedb0bafd0cf2b5 --- web/app/upgrade/8_group_v2/up.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/upgrade/8_group_v2/up.sql b/web/app/upgrade/8_group_v2/up.sql index 8dea4cc..03d5887 100644 --- a/web/app/upgrade/8_group_v2/up.sql +++ b/web/app/upgrade/8_group_v2/up.sql @@ -1,6 +1,6 @@ RENAME TABLE assignments TO groups_assignments; -ALTER TABLE `assignments` DROP PRIMARY KEY, ADD PRIMARY KEY (`group_id`, `list_id`); -ALTER TABLE `assignments` DROP COLUMN `id`; +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;