File tree 5 files changed +14
-4
lines changed
5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,12 @@ export default class Refresh extends BaseCommand {
50
50
@flags . boolean ( { description : 'Drop all custom types (Postgres only)' } )
51
51
public dropTypes : boolean
52
52
53
+ /**
54
+ * Disable advisory locks
55
+ */
56
+ @flags . boolean ( { description : 'Disable locks acquired to run migrations safely' } )
57
+ public disableLocks : boolean
58
+
53
59
/**
54
60
* Converting command properties to arguments
55
61
*/
@@ -63,6 +69,10 @@ export default class Refresh extends BaseCommand {
63
69
args . push ( `--connection="${ this . connection } "` )
64
70
}
65
71
72
+ if ( this . disableLocks ) {
73
+ args . push ( '--disable-locks' )
74
+ }
75
+
66
76
return args
67
77
}
68
78
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export default class Refresh extends BaseCommand {
47
47
/**
48
48
* Disable advisory locks
49
49
*/
50
- @flags . boolean ( { description : 'Disable advisory locks' } )
50
+ @flags . boolean ( { description : 'Disable locks acquired to run migrations safely ' } )
51
51
public disableLocks : boolean
52
52
53
53
/**
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export default class Reset extends BaseCommand {
41
41
/**
42
42
* Disable advisory locks
43
43
*/
44
- @flags . boolean ( { description : 'Disable advisory locks' } )
44
+ @flags . boolean ( { description : 'Disable locks acquired to run migrations safely ' } )
45
45
public disableLocks : boolean
46
46
47
47
/**
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export default class Migrate extends MigrationsBase {
60
60
/**
61
61
* Disable advisory locks
62
62
*/
63
- @flags . boolean ( { description : 'Disable advisory locks' } )
63
+ @flags . boolean ( { description : 'Disable locks acquired to run migrations safely ' } )
64
64
public disableLocks : boolean
65
65
66
66
/**
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default class Migrate extends MigrationsBase {
51
51
/**
52
52
* Disable advisory locks
53
53
*/
54
- @flags . boolean ( { description : 'Disable advisory locks' } )
54
+ @flags . boolean ( { description : 'Disable locks acquired to run migrations safely ' } )
55
55
public disableLocks : boolean
56
56
57
57
/**
You can’t perform that action at this time.
0 commit comments