Skip to content

MigrationOptions

Defined in: .work/repos/edinburgh/src/migrate.ts:10

optional tables?: string[]

Defined in: .work/repos/edinburgh/src/migrate.ts:12

Limit migration to specific table names.


optional populateSecondaries?: boolean

Defined in: .work/repos/edinburgh/src/migrate.ts:14

Populate secondary indexes for rows at old schema versions (default: true).


optional migratePrimaries?: boolean

Defined in: .work/repos/edinburgh/src/migrate.ts:16

Convert old primary indices when primary key fields changed (default: true).


optional rewriteData?: boolean

Defined in: .work/repos/edinburgh/src/migrate.ts:18

Rewrite all row data to the latest schema version (default: false).


optional removeOrphans?: boolean

Defined in: .work/repos/edinburgh/src/migrate.ts:20

Delete orphaned secondary/unique index entries (default: true).


optional onProgress?: (info) => void

Defined in: .work/repos/edinburgh/src/migrate.ts:22

Progress callback.

ProgressInfo

void