Skip to main content

Interface: MigrationStatus

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


Defined in: migrate.ts:18

The migration state of a database, from getMigrationStatus().

Properties​

currentVersion​

currentVersion: number

Defined in: migrate.ts:23

The applied schema version; 0 when no migration has been applied. formatSchemaVersion() gives its mq version.


dirty​

dirty: boolean

Defined in: migrate.ts:29

Whether the migration of currentVersion has not finished: it failed partway, or another process is applying it right now (the status is read without the migration lock).


latestVersion​

latestVersion: number

Defined in: migrate.ts:31

The schema version of the latest migration embedded in this package.


needsMigration​

needsMigration: boolean

Defined in: migrate.ts:36

Whether currentVersion is below latestVersion. A dirty database may report false; migrate() refuses it either way.