Setu-TS
    Preparing search index...

    Interface IMigrationLedger

    Migration history consumed by runners and readiness.

    0.10.0

    interface IMigrationLedger {
        applied(): Promise<readonly string[]>;
        record(name: string, appliedAt: string): Promise<void>;
        remove(name: string): Promise<void>;
    }
    Index
    • Records a successful migration; duplicate names propagate the adapter's create error.

      Parameters

      • name: string

        Migration filename without extension

      • appliedAt: string

        Caller-supplied ISO-8601 timestamp

      Returns Promise<void>

      Completion of the insert

    • Removes a reversed migration, resolving even when absent.

      Parameters

      • name: string

        Migration filename without extension

      Returns Promise<void>

      Completion of the delete