Skip to content

Search the guides, deployment pages, and API reference.

GenerateD1MigrationsOptions

import type { GenerateD1MigrationsOptions } from "@pitlane/data-table-d1/migrations";

What generateD1Migrations needs to know.

Properties

from?

optional from?: string;

Directory holding the data-table migrations, one <id>_<name>/ directory per migration.

Default

"db/migrations"

to

to: string;

Where the generated .sql files land. Point this at the same directory as migrations_dir in your Wrangler config.