Fix tests.
This commit is contained in:
parent
84927bbb98
commit
509950d368
|
@ -35,7 +35,7 @@ export const backPopulateMigrations = async (opts: MigrationNoOpOptions) => {
|
|||
// filter migrations to the type and populate a no-op migration
|
||||
const migrations: Migration[] = DEFINITIONS.filter(
|
||||
def => def.type === opts.type
|
||||
).map(d => ({ ...d, fn: () => {} }))
|
||||
).map(d => ({ ...d, fn: async () => {} }))
|
||||
await runMigrations(migrations, { noOp: opts })
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e49ac51191d88787912673366d350d36987354fd
|
||||
Subproject commit b2f2e2b9d45906744196875b87a121948e8e4c09
|
|
@ -1,6 +1,8 @@
|
|||
import { Database } from "./db"
|
||||
|
||||
export interface Migration extends MigrationDefinition {
|
||||
appOpts?: object
|
||||
fn: () => void
|
||||
fn: (db: Database) => Promise<void>
|
||||
silent?: boolean
|
||||
preventRetry?: boolean
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue