Skip to content

Interface: RunMigrationsOptions<S>

Defined in: server/src/migrations.ts:180

S extends Schema<Record<string, AnyTable>>

readonly schema: S

Defined in: server/src/migrations.ts:181


readonly executor: SqlExecutor

Defined in: server/src/migrations.ts:182


readonly optional dialect?: SqlDialect

Defined in: server/src/migrations.ts:183


readonly optional onLog?: (event) => void

Defined in: server/src/migrations.ts:185

Called once per DDL statement + high-level plan events.

MigrationEvent

void


readonly optional dryRun?: boolean

Defined in: server/src/migrations.ts:190

When true, compute the diff and return the planned statements but do not execute them. Useful for CI dry-run.