database: update xorm to v0.6.4 and xorm core to v0.5.7

This commit is contained in:
Daniel Lee
2018-03-15 09:51:29 +01:00
parent 0185ad5b04
commit 1c20126f87
49 changed files with 2995 additions and 1894 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ func (mg *Migrator) exec(m Migration, sess *xorm.Session) error {
condition := m.GetCondition()
if condition != nil {
sql, args := condition.Sql(mg.dialect)
results, err := sess.Query(sql, args...)
results, err := sess.SQL(sql).Query(args...)
if err != nil || len(results) == 0 {
mg.Logger.Info("Skipping migration condition not fulfilled", "id", m.Id())
return sess.Rollback()