Skip to main content

Class: DirtySchemaError

TypeScript 0.4.0 · Source commit cbff27b8a34e1384384018680e46c20d5c610cc9. Generated with reviewed comment corrections; see generation notes.


Defined in: errors.ts:148

DirtySchemaError is thrown by migrate() when the recorded schema version is marked dirty: a migration failed partway, so the schema is in an unknown state. Fix the schema by hand, then clear the flag in postgremq.postgremq_migrations. Mirrors golang-migrate's ErrDirty, which the Go client returns.

Pure client-side error (no SQLSTATE), so it carries no code.

Extends​

  • Error

Constructors​

Constructor​

new DirtySchemaError(version): DirtySchemaError

Defined in: errors.ts:151

Parameters​

version​

number

Returns​

DirtySchemaError

Overrides​

Error.constructor

Properties​

version​

readonly version: number

Defined in: errors.ts:150

The version whose migration did not finish.