mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:10: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 {
|
if err != nil {
|
||||||
return 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
|
return err
|
||||||
} else {
|
} else {
|
||||||
status = "update"
|
status = "update"
|
||||||
|
Loading…
Reference in New Issue
Block a user