1
0

Update module src.techknowlogick.com/xormigrate to v1.2.1 (#574)

Update module src.techknowlogick.com/xormigrate to v1.2.1

Reviewed-on: https://kolaente.dev/vikunja/api/pulls/574
This commit is contained in:
renovate
2020-06-01 10:33:58 +00:00
committed by konrad
parent d63666cece
commit 67f4c9f941
8 changed files with 33 additions and 13 deletions

View File

@ -275,11 +275,11 @@ func (x *Xormigrate) runMigration(migration *Migration) error {
logger.Info(migration.Description)
}
if err := migration.Migrate(x.db); err != nil {
return err
return fmt.Errorf("migration %s failed: %s", migration.ID, err.Error())
}
if err := x.insertMigration(migration.ID); err != nil {
return err
return fmt.Errorf("inserting migration %s failed: %s", migration.ID, err.Error())
}
}
return nil