Fix bug with migration filename generation
This commit is contained in:
parent
c576f1ae16
commit
51c5f037f4
|
@ -124,7 +124,7 @@ func cmdDBNew(cmd *cobra.Command, args []string) {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
mname := fmt.Sprintf("%d_%s.sql", (len(m) + 1), name)
|
||||
mname := fmt.Sprintf("%d_%s.sql", len(m), name)
|
||||
|
||||
// Write new migration
|
||||
mpath := filepath.Join(conf.MigrationsPath, mname)
|
||||
|
|
Loading…
Reference in New Issue