Class MigrationRecord
Represents a row from the _migrations table: one data migration applied to a scheme (redb Pro). The rows
tell a later migration run what the data already has, so an imported database does not get a migration twice.
Written after the structures; a database that never ran a migration writes none.
public sealed class MigrationRecord : ExportRecord
Inheritance
Properties
ExpressionHash
Hash of the migration's expression, used to detect a changed migration.
public string? ExpressionHash { get; init; }
MigrationId
Identifier of the migration within its scheme (e.g. "OrderProps_TotalPrice_v1").
public string MigrationId { get; init; }
MigrationType
Kind of migration (e.g. "ComputedFrom", "Transform").
public string MigrationType { get; init; }
SqlExecuted
The statement the migration ran, kept for audit.
public string? SqlExecuted { get; init; }
StructureId
Structure the migration changed; null for the whole scheme.
public long? StructureId { get; init; }