Skip to content

Commit

Permalink
migration: update the params orders
Browse files Browse the repository at this point in the history
  • Loading branch information
astaxie committed Aug 14, 2014
1 parent 57a9670 commit 31f0ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migration/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 31f0ac4

Please sign in to comment.