From 73a43ca52f529f2f27fa45acea9eae367938fae2 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Sat, 7 May 2022 12:55:06 +0530 Subject: [PATCH] fix: do not wrap connection name in quotes when running migrations from tests --- src/TestUtils/Migration.ts | 2 +- src/TestUtils/Seeder.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TestUtils/Migration.ts b/src/TestUtils/Migration.ts index bac105cb..4275558b 100644 --- a/src/TestUtils/Migration.ts +++ b/src/TestUtils/Migration.ts @@ -18,7 +18,7 @@ export class TestsMigrator { private async runCommand(commandName: string) { const args: string[] = [] if (this.connectionName) { - args.push(`--connection="${this.connectionName}"`) + args.push(`--connection=${this.connectionName}`) } const command = await this.ace.exec(commandName, args) diff --git a/src/TestUtils/Seeder.ts b/src/TestUtils/Seeder.ts index 0c7344ad..594e9994 100644 --- a/src/TestUtils/Seeder.ts +++ b/src/TestUtils/Seeder.ts @@ -18,7 +18,7 @@ export class TestsSeeder { private async runCommand(commandName: string) { const args: string[] = [] if (this.connectionName) { - args.push(`--connection="${this.connectionName}"`) + args.push(`--connection=${this.connectionName}`) } const command = await this.ace.exec(commandName, args)