Skip to content

DatabaseMigrationError

Defined in: core/src/error/error.ts:183

Thrown when a database’s migrations could not be brought up to date.

A migration failure leaves the schema partly built, so every later query fails for a reason that has nothing to do with its own cause. The originating error is kept as cause, and the migration that broke named where one could be identified.

new DatabaseMigrationError(
databaseId,
migrationName,
cause): DatabaseMigrationError;

Defined in: core/src/error/error.ts:187

Parameter Type
databaseId string
migrationName string | undefined
cause unknown

DatabaseMigrationError

CoreError.constructor

readonly databaseId: string;

Defined in: core/src/error/error.ts:184


readonly optional migrationName?: string;

Defined in: core/src/error/error.ts:185