migration: update the params orders
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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" | ... | ... |
-
Please register or sign in to post a comment