From 296bffc56007e4b9d6e339fa78b68ffc9c8897e5 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 3 Oct 2023 02:44:18 +0200 Subject: [PATCH] fixed the rollback of one migration accidentally using the wrong enum value --- server/backend/migration/20230826000000.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/backend/migration/20230826000000.go b/server/backend/migration/20230826000000.go index b8c8c284..b77b3f7a 100644 --- a/server/backend/migration/20230826000000.go +++ b/server/backend/migration/20230826000000.go @@ -55,7 +55,7 @@ func (m TumDBMigrator) migrate20230826000000() *gormigrate.Migration { if err := tx.Migrator().DropColumn(&Feedback{}, "AppVersion"); err != nil { return err } - if err := tx.Delete(&model.Crontab{}, "type = 'fileDownload'").Error; err != nil { + if err := tx.Delete(&model.Crontab{}, "type = 'feedbackEmail'").Error; err != nil { return err } return SafeEnumMigrate(tx, &model.Crontab{}, "type", "feedbackEmail")