Skip to content

Class: MigrationRefused

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

Refuse to run a migration whose diff would silently lose data or change a column’s storage shape. Thrown by runMigrations before any DDL is dispatched — the caller can catch it, log, and inspect the diff itself.

  • Error

new MigrationRefused(reason, diff): MigrationRefused

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

string

SchemaDiff

MigrationRefused

Error.constructor

readonly reason: string

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


readonly diff: SchemaDiff

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