Skip to content
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

Commit 690e6f5

Browse files
CavidMpleerock
authored andcommitted
fix: "database" option error in driver when use "url" option for connection
1 parent e589fda commit 690e6f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/connection/Connection.ts

+2
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ export class Connection {
517517
const migrations = connectionMetadataBuilder.buildMigrations(this.options.migrations || []);
518518
ObjectUtils.assign(this, { migrations: migrations });
519519

520+
this.driver.database = <string> this.options.database;
521+
520522
// validate all created entity metadatas to make sure user created entities are valid and correct
521523
entityMetadataValidator.validateMany(this.entityMetadatas.filter(metadata => metadata.tableType !== "view"), this.driver);
522524
}

0 commit comments

Comments
 (0)