@suluk/cloudflare - v0.4.0
    Preparing search index...

    Interface WorkerMigration

    A Durable Object migration, INLINE in the script-upload metadata (NOT the D1 Migration in resources.ts — that is SQL run against a database; this is a declarative tag that tells Workers a DO class exists and which storage backend it uses). NB the wire field is new_tag (+ optional old_tag), unlike wrangler.jsonc which uses tag. new_sqlite_classes is what the Agents SDK + the Workers free plan require; new_classes is the legacy KV backend.

    interface WorkerMigration {
        new_tag: string;
        old_tag?: string;
        new_sqlite_classes?: string[];
        new_classes?: string[];
        renamed_classes?: { from: string; to: string }[];
        deleted_classes?: string[];
    }
    Index

    Properties

    new_tag: string

    the migration tag this upload advances to (e.g. "v1").

    old_tag?: string

    the tag the server must currently be at — optimistic concurrency; omit on the first deploy.

    new_sqlite_classes?: string[]

    classes to create with the SQLite storage backend (Agents SDK requirement).

    new_classes?: string[]

    classes to create with the legacy key-value backend (Paid plan only).

    renamed_classes?: { from: string; to: string }[]
    deleted_classes?: string[]