@@ -193,7 +193,8 @@ var (
193
193
},
194
194
}
195
195
196
- noSeed bool
196
+ noSeed bool
197
+ lastVersion uint
197
198
198
199
dbResetCmd = & cobra.Command {
199
200
Use : "reset" ,
@@ -202,7 +203,7 @@ var (
202
203
if noSeed {
203
204
utils .Config .Db .Seed .Enabled = false
204
205
}
205
- return reset .Run (cmd .Context (), migrationVersion , nLastVersion , flags .DbConfig , afero .NewOsFs ())
206
+ return reset .Run (cmd .Context (), migrationVersion , lastVersion , flags .DbConfig , afero .NewOsFs ())
206
207
},
207
208
}
208
209
@@ -326,7 +327,7 @@ func init() {
326
327
resetFlags .BoolVar (& noSeed , "no-seed" , false , "Skip running the seed script after reset." )
327
328
dbResetCmd .MarkFlagsMutuallyExclusive ("db-url" , "linked" , "local" )
328
329
resetFlags .StringVar (& migrationVersion , "version" , "" , "Reset up to the specified version." )
329
- resetFlags .UintVar (& nLastVersion , "last" , 0 , "Reset up to the last n migration versions." )
330
+ resetFlags .UintVar (& lastVersion , "last" , 0 , "Reset up to the last n migration versions." )
330
331
dbResetCmd .MarkFlagsMutuallyExclusive ("version" , "last" )
331
332
dbCmd .AddCommand (dbResetCmd )
332
333
// Build lint command
0 commit comments