Skip to content

Commit

Permalink
fixed the rollback of one migration accidentally using the wrong enum…
Browse files Browse the repository at this point in the history
… value
  • Loading branch information
CommanderStorm committed Oct 3, 2023
1 parent 4df2bce commit 296bffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/backend/migration/20230826000000.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 296bffc

Please sign in to comment.