Skip to main content

verify_migrations

Function verify_migrations 

Source
pub fn verify_migrations(
    credentials: &Credentials,
    dialect: Dialect,
    migrations_dir: &Path,
    migrations_table: &str,
    migrations_schema: &str,
) -> Result<MigrationPlan, CliError>
Expand description

Verify migrations by re-running the planning logic without applying anything, surfacing any inconsistencies between the on-disk migration files and the tracking table.

ยงErrors

Returns the same errors as plan_migrations.