pub struct MigrationSettings {
pub locations: Vec<PathBuf>,
pub table: String,
pub schema: String,
pub out_of_order: bool,
pub validate_on_migrate: bool,
pub clean_enabled: bool,
pub baseline_version: String,
pub installed_by: Option<String>,
pub environment: Option<String>,
pub dependency_ordering: bool,
pub show_progress: bool,
pub batch_transaction: bool,
}Expand description
Migration behavior settings.
Fields§
§locations: Vec<PathBuf>Filesystem directories to scan for migration SQL files.
table: StringName of the schema history table.
schema: StringDatabase schema where the history table resides.
out_of_order: boolWhether to allow applying migrations with versions below the highest applied version.
validate_on_migrate: boolWhether to validate already-applied migration checksums before migrating.
clean_enabled: boolWhether the clean command is allowed to run.
baseline_version: StringVersion to use when running the baseline command.
installed_by: Option<String>Custom value for the installed_by column (defaults to database user).
environment: Option<String>Logical environment name (e.g., “production”, “staging”) for filtering.
dependency_ordering: boolWhether to use @depends directives to order migrations topologically.
show_progress: boolWhether to display a progress indicator during migration.
batch_transaction: boolWhether to wrap all pending migrations in a single transaction (all-or-nothing).
Trait Implementations§
Source§impl Clone for MigrationSettings
impl Clone for MigrationSettings
Source§fn clone(&self) -> MigrationSettings
fn clone(&self) -> MigrationSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more