Made name flag required when rolling back a migration
This commit is contained in:
parent
e55af8b20a
commit
a78182322b
|
@ -24,6 +24,7 @@ import (
|
||||||
func init() {
|
func init() {
|
||||||
migrateCmd.AddCommand(migrateListCmd)
|
migrateCmd.AddCommand(migrateListCmd)
|
||||||
migrationRollbackCmd.Flags().StringVarP(&rollbackUntilFlag, "name", "n", "", "The id of the migration you want to roll back until.")
|
migrationRollbackCmd.Flags().StringVarP(&rollbackUntilFlag, "name", "n", "", "The id of the migration you want to roll back until.")
|
||||||
|
migrationRollbackCmd.MarkFlagRequired("name")
|
||||||
migrateCmd.AddCommand(migrationRollbackCmd)
|
migrateCmd.AddCommand(migrationRollbackCmd)
|
||||||
rootCmd.AddCommand(migrateCmd)
|
rootCmd.AddCommand(migrateCmd)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user