async endMigration(): Bluebird<any> {
    if (!this.internals.notransactions) {
      await this.commitTransaction();
    }
  }