Add ignore_missing parameter

This commit is contained in:
Evgeny Nosov
2021-01-27 15:04:21 +03:00
committed by Ryan Leckey
parent 8950332ca3
commit 85ff651ba1
5 changed files with 47 additions and 11 deletions

View File

@@ -111,6 +111,10 @@ pub enum MigrateCommand {
/// List all the migrations to be run without applying
#[clap(long)]
dry_run: bool,
/// Ignore applied migrations that missing in the resolved migrations
#[clap(long)]
ignore_missing: bool,
},
/// Revert the latest migration with a down file.
@@ -118,6 +122,10 @@ pub enum MigrateCommand {
/// List the migration to be reverted without applying
#[clap(long)]
dry_run: bool,
/// Ignore applied migrations that missing in the resolved migrations
#[clap(long)]
ignore_missing: bool,
},
/// List all available migrations.