Skip to content

Commit 05f28e4

Browse files
committedMay 22, 2023
refactor: update disable-locks flag description
1 parent 9bf8f24 commit 05f28e4

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed
 

‎commands/Migration/Fresh.ts

+10
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ export default class Refresh extends BaseCommand {
5050
@flags.boolean({ description: 'Drop all custom types (Postgres only)' })
5151
public dropTypes: boolean
5252

53+
/**
54+
* Disable advisory locks
55+
*/
56+
@flags.boolean({ description: 'Disable locks acquired to run migrations safely' })
57+
public disableLocks: boolean
58+
5359
/**
5460
* Converting command properties to arguments
5561
*/
@@ -63,6 +69,10 @@ export default class Refresh extends BaseCommand {
6369
args.push(`--connection="${this.connection}"`)
6470
}
6571

72+
if (this.disableLocks) {
73+
args.push('--disable-locks')
74+
}
75+
6676
return args
6777
}
6878

‎commands/Migration/Refresh.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class Refresh extends BaseCommand {
4747
/**
4848
* Disable advisory locks
4949
*/
50-
@flags.boolean({ description: 'Disable advisory locks' })
50+
@flags.boolean({ description: 'Disable locks acquired to run migrations safely' })
5151
public disableLocks: boolean
5252

5353
/**

‎commands/Migration/Reset.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class Reset extends BaseCommand {
4141
/**
4242
* Disable advisory locks
4343
*/
44-
@flags.boolean({ description: 'Disable advisory locks' })
44+
@flags.boolean({ description: 'Disable locks acquired to run migrations safely' })
4545
public disableLocks: boolean
4646

4747
/**

‎commands/Migration/Rollback.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class Migrate extends MigrationsBase {
6060
/**
6161
* Disable advisory locks
6262
*/
63-
@flags.boolean({ description: 'Disable advisory locks' })
63+
@flags.boolean({ description: 'Disable locks acquired to run migrations safely' })
6464
public disableLocks: boolean
6565

6666
/**

‎commands/Migration/Run.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class Migrate extends MigrationsBase {
5151
/**
5252
* Disable advisory locks
5353
*/
54-
@flags.boolean({ description: 'Disable advisory locks' })
54+
@flags.boolean({ description: 'Disable locks acquired to run migrations safely' })
5555
public disableLocks: boolean
5656

5757
/**

0 commit comments

Comments
 (0)
Please sign in to comment.