Skip to content

Commit

Permalink
fix: "database" option error in driver when use "url" option for conn…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
CavidM authored and pleerock committed Sep 5, 2019
1 parent e589fda commit 690e6f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/connection/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ export class Connection {
const migrations = connectionMetadataBuilder.buildMigrations(this.options.migrations || []);
ObjectUtils.assign(this, { migrations: migrations });

this.driver.database = <string> this.options.database;

// validate all created entity metadatas to make sure user created entities are valid and correct
entityMetadataValidator.validateMany(this.entityMetadatas.filter(metadata => metadata.tableType !== "view"), this.driver);
}
Expand Down

0 comments on commit 690e6f5

Please sign in to comment.