Skip to content

Commit

Permalink
fix: omit double quotes from connection name (#983)
Browse files Browse the repository at this point in the history
When passing connection name parameter, connection name includes double quotes, so omit them

fix #947
  • Loading branch information
pokedpeter committed Mar 8, 2024
1 parent 67ba462 commit 8c333e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions commands/migration/fresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class Refresh extends BaseCommand {
}

if (this.connection) {
args.push(`--connection="${this.connection}"`)
args.push(`--connection=${this.connection}`)
}

if (this.disableLocks) {
Expand Down Expand Up @@ -127,7 +127,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)
Expand Down
4 changes: 2 additions & 2 deletions commands/migration/refresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class Refresh extends BaseCommand {
}

if (this.connection) {
args.push(`--connection="${this.connection}"`)
args.push(`--connection=${this.connection}`)
}

if (this.dryRun) {
Expand Down Expand Up @@ -99,7 +99,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)
Expand Down
2 changes: 1 addition & 1 deletion commands/migration/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class Reset extends BaseCommand {
}

if (this.connection) {
args.push(`--connection="${this.connection}"`)
args.push(`--connection=${this.connection}`)
}

if (this.dryRun) {
Expand Down

0 comments on commit 8c333e0

Please sign in to comment.