Temporarily cast migration AsyncCollection to Collection pending #17
This commit is contained in:
@@ -140,12 +140,13 @@ export class DatabaseMigrator extends Migrator {
|
||||
* @protected
|
||||
*/
|
||||
protected async filterAppliedMigrations(identifiers: string[]): Promise<string[]> {
|
||||
const existing = await this.builder()
|
||||
const existing = (await this.builder()
|
||||
.connection('default')
|
||||
.select('identifier')
|
||||
.from('migrations')
|
||||
.whereIn('identifier', identifiers)
|
||||
.get()
|
||||
.collect())
|
||||
.pluck<string>('identifier')
|
||||
|
||||
return identifiers.filter(id => !existing.includes(id))
|
||||
|
||||
Reference in New Issue
Block a user