Class: MigrationRefused
Class: MigrationRefused
Section titled “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.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MigrationRefused(
reason,diff):MigrationRefused
Defined in: server/src/migrations.ts:148
Parameters
Section titled “Parameters”reason
Section titled “reason”string
Returns
Section titled “Returns”MigrationRefused
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”reason
Section titled “reason”
readonlyreason:string
Defined in: server/src/migrations.ts:149
readonlydiff:SchemaDiff
Defined in: server/src/migrations.ts:150