mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
All migrations work in sqlite3, mysql and postgres
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user