提交 31f0ac4c 编写于 作者: A astaxie

migration: update the params orders

上级 57a9670b
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册