From 8bbe54c7f41f521835aa9e0384713a7c06448d14 Mon Sep 17 00:00:00 2001 From: Peter Cartwright Date: Tue, 16 Jan 2024 14:28:54 +0800 Subject: [PATCH] fix: omit double quotes from connection name When passing connection name parameter, connection name includes double quotes, so omit them fix #947 --- commands/Migration/Fresh.ts | 4 ++-- commands/Migration/Refresh.ts | 4 ++-- commands/Migration/Reset.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/Migration/Fresh.ts b/commands/Migration/Fresh.ts index 1c47baca..8feefb93 100644 --- a/commands/Migration/Fresh.ts +++ b/commands/Migration/Fresh.ts @@ -66,7 +66,7 @@ export default class Refresh extends BaseCommand { } if (this.connection) { - args.push(`--connection="${this.connection}"`) + args.push(`--connection=${this.connection}`) } if (this.disableLocks) { @@ -116,7 +116,7 @@ export default class Refresh extends BaseCommand { private async runDbSeed() { const args: string[] = [] if (this.connection) { - args.push(`--connection="${this.connection}"`) + args.push(`--connection=${this.connection}`) } const dbSeed = await this.kernel.exec('db:seed', args) diff --git a/commands/Migration/Refresh.ts b/commands/Migration/Refresh.ts index 28d852cd..cc7b0f79 100644 --- a/commands/Migration/Refresh.ts +++ b/commands/Migration/Refresh.ts @@ -60,7 +60,7 @@ export default class Refresh extends BaseCommand { } if (this.connection) { - args.push(`--connection="${this.connection}"`) + args.push(`--connection=${this.connection}`) } if (this.dryRun) { @@ -98,7 +98,7 @@ export default class Refresh extends BaseCommand { private async runDbSeed() { const args: string[] = [] if (this.connection) { - args.push(`--connection="${this.connection}"`) + args.push(`--connection=${this.connection}`) } const dbSeed = await this.kernel.exec('db:seed', args) diff --git a/commands/Migration/Reset.ts b/commands/Migration/Reset.ts index 09d5a90e..c63053db 100644 --- a/commands/Migration/Reset.ts +++ b/commands/Migration/Reset.ts @@ -54,7 +54,7 @@ export default class Reset extends BaseCommand { } if (this.connection) { - args.push(`--connection="${this.connection}"`) + args.push(`--connection=${this.connection}`) } if (this.dryRun) {