MigrationOptions
Options for migration execution.
public sealed record MigrationOptions : IEquatable<MigrationOptions>
Properties
Default
public static MigrationOptions Default { get; }
Default migration options (safe, additive only).
Destructive
public static MigrationOptions Destructive { get; }
Migration options that allow destructive operations. USE WITH CAUTION.
AllowDestructive
public bool AllowDestructive { get; init; }
Whether to allow destructive operations (DROP TABLE, DROP COLUMN). Default: false
UseTransaction
public bool UseTransaction { get; init; }
Whether to wrap all operations in a transaction. Default: true (recommended)
ContinueOnError
public bool ContinueOnError { get; init; }
Whether to continue on error (skip failed operations). Default: false (fail fast)
DryRun
public bool DryRun { get; init; }
Whether to perform a dry run (log DDL without executing). Default: false