diff --git a/serv/cmd_migrate.go b/serv/cmd_migrate.go index 90cf04e..749aef7 100644 --- a/serv/cmd_migrate.go +++ b/serv/cmd_migrate.go @@ -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)