Table of Contents

Class AppliedMigration

Namespace
Excalibur.EventSourcing
Assembly
Excalibur.EventSourcing.Abstractions.dll

Represents a migration that has been applied to the database.

public sealed record AppliedMigration : IEquatable<AppliedMigration>
Inheritance
AppliedMigration
Implements
Inherited Members

Remarks

This record is used both for tracking migrations that have been applied to the database and for describing migrations that were applied during a migration operation.

Properties

AppliedAt

Gets the timestamp when this migration was applied.

public required DateTimeOffset AppliedAt { get; init; }

Property Value

DateTimeOffset

The UTC timestamp of when the migration was applied to the database.

Checksum

Gets the checksum of the migration script for integrity verification.

public string? Checksum { get; init; }

Property Value

string

A hash of the migration content, or null if not tracked.

Description

Gets an optional description of what this migration does.

public string? Description { get; init; }

Property Value

string

A human-readable description, or null if not provided.

MigrationId

Gets the unique identifier for this migration.

public required string MigrationId { get; init; }

Property Value

string

A unique string identifier, typically in format "YYYYMMDDHHMMSS_MigrationName" to ensure ordering and uniqueness.