Skip to content

Commit

Permalink
fixed one migration having a longer name
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 19, 2023
1 parent e342277 commit c032370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"gorm.io/gorm"
)

// migrate2023090410000000
// migrate20230904100000
// migrates the crontap from kino to movie crontab
func (m TumDBMigrator) migrate2023090410000000() *gormigrate.Migration {
func (m TumDBMigrator) migrate20230904100000() *gormigrate.Migration {
return &gormigrate.Migration{
ID: "2023090410000000",
ID: "20230904100000",
Migrate: func(tx *gorm.DB) error {
// modify the crontab
if err := tx.Delete(&model.Crontab{}, "type = ?", "kino").Error; err != nil {
Expand Down
2 changes: 1 addition & 1 deletion server/backend/migration/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (m TumDBMigrator) Migrate() error {
m.migrate20221210000000(),
m.migrate20230825000000(),
m.migrate20230904000000(),
m.migrate2023090410000000(),
m.migrate20230904100000(),
})
err := mig.Migrate()
return err
Expand Down

0 comments on commit c032370

Please sign in to comment.