All migrations work in sqlite3, mysql and postgres

This commit is contained in:
Torkel Ödegaard
2015-02-25 07:57:51 +01:00
parent 16fd256225
commit 563d5e3ad8
4 changed files with 3 additions and 9 deletions

View File

@@ -125,7 +125,7 @@ func (mg *Migrator) exec(m Migration) error {
results, err := sess.Query(sql, args...)
if err != nil || len(results) == 0 {
log.Info("Migrator: skipping migration id: %v, condition not fulfilled", m.Id())
return nil
return sess.Rollback()
}
}