drupflare/worker - v1.0.0
    Preparing search index...

    Interface MigrationManifest

    The part of manifest.json a replay reads; scripts/pack-sql.ts writes considerably more.

    interface MigrationManifest {
        chunks: { file: string }[];
        creates?: string[];
        generation: string;
        replaces?: boolean;
        tables?: Record<string, number>;
        totals: { chunks: number; rows: number; statements: number };
    }
    Index
    chunks: { file: string }[]
    creates?: string[]
    generation: string
    replaces?: boolean

    Whether this manifest may replay over a database that has already finished a DIFFERENT generation. Absent, which is the shipped pack, means no.

    A restore sets it, and that is the whole difference between the two directions. Replaying a newer pack over a site that has been running and writing for months would produce a database that is neither; replaying a BACKUP over that same site is the entire point of the backup.

    tables?: Record<string, number>
    totals: { chunks: number; rows: number; statements: number }