migration: update the params orders

This commit is contained in:
astaxie 2014-08-14 13:41:54 +08:00
parent 57a9670b0a
commit 31f0ac4ce3
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func (m *Migration) addOrUpdateRecord(name, status string) error {
if err != nil {
return nil
}
_, err = p.Exec(status, strings.Join(m.sqls, "; "), name, time.Now().Format(M_DB_DATE_FORMAT))
_, err = p.Exec(status, strings.Join(m.sqls, "; "), time.Now().Format(M_DB_DATE_FORMAT), name)
return err
} else {
status = "update"