31f0ac4c by astaxie

migration: update the params orders

1 parent 57a9670b
...@@ -100,7 +100,7 @@ func (m *Migration) addOrUpdateRecord(name, status string) error { ...@@ -100,7 +100,7 @@ func (m *Migration) addOrUpdateRecord(name, status string) error {
100 if err != nil { 100 if err != nil {
101 return nil 101 return nil
102 } 102 }
103 _, err = p.Exec(status, strings.Join(m.sqls, "; "), name, time.Now().Format(M_DB_DATE_FORMAT)) 103 _, err = p.Exec(status, strings.Join(m.sqls, "; "), time.Now().Format(M_DB_DATE_FORMAT), name)
104 return err 104 return err
105 } else { 105 } else {
106 status = "update" 106 status = "update"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!