mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 08:40:54 +00:00
migration: update the params orders
This commit is contained in:
parent
57a9670b0a
commit
31f0ac4ce3
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user