MigrationOptions
Defined in: .work/repos/edinburgh/src/migrate.ts:10
Properties
Section titled “Properties”tables?
Section titled “tables?”
optionaltables?:string[]
Defined in: .work/repos/edinburgh/src/migrate.ts:12
Limit migration to specific table names.
populateSecondaries?
Section titled “populateSecondaries?”
optionalpopulateSecondaries?:boolean
Defined in: .work/repos/edinburgh/src/migrate.ts:14
Populate secondary indexes for rows at old schema versions (default: true).
migratePrimaries?
Section titled “migratePrimaries?”
optionalmigratePrimaries?:boolean
Defined in: .work/repos/edinburgh/src/migrate.ts:16
Convert old primary indices when primary key fields changed (default: true).
rewriteData?
Section titled “rewriteData?”
optionalrewriteData?:boolean
Defined in: .work/repos/edinburgh/src/migrate.ts:18
Rewrite all row data to the latest schema version (default: false).
removeOrphans?
Section titled “removeOrphans?”
optionalremoveOrphans?:boolean
Defined in: .work/repos/edinburgh/src/migrate.ts:20
Delete orphaned secondary/unique index entries (default: true).
onProgress?
Section titled “onProgress?”
optionalonProgress?: (info) =>void
Defined in: .work/repos/edinburgh/src/migrate.ts:22
Progress callback.
Parameters
Section titled “Parameters”ProgressInfo
Returns
Section titled “Returns”void