Skip to content

Interface: RunMigrationsOptions<S>

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

S extends Schema<Record<string, AnyTable>>

readonly schema: S

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


readonly executor: SqlExecutor

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


readonly optional dialect?: SqlDialect

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


readonly optional onLog?: (event) => void

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

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

MigrationEvent

void


readonly optional dryRun?: boolean

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

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


readonly optional audit?: boolean

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

Enables the opt-in audit-log tables (_plasma_audit_log, _plasma_audit_touched_rows, _plasma_audit_checkpoints). Omit or pass false to keep the audit primitive out of the deployment entirely — no DDL, no runtime cost. Must match SyncHandlerOptions.audit at the sync-handler boundary; a mismatch fires PlasmaAuditSchemaError on the first push/pull.