File tree 2 files changed +6
-4
lines changed 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ const execUnit = {
55
55
await execUnit . down ( context , driver , file ) ;
56
56
throw err ;
57
57
}
58
- return Promise . promisify ( context . writeMigrationRecord . bind ( context ) ) ( file ) ;
58
+ await Promise . promisify ( context . writeMigrationRecord . bind ( context ) ) ( file ) ;
59
+ return State . endMigration ( context . _driver , file , context . internals ) ;
59
60
// end migration, same as start migration
60
61
} ,
61
62
Original file line number Diff line number Diff line change @@ -157,16 +157,17 @@ class STD {
157
157
this . modS [ t ] = { } ;
158
158
159
159
if ( this . schema [ t ] [ c ] . notNull === true ) {
160
- switch ( o . columnStrategies ) {
160
+ switch ( o . columnStrategy ) {
161
161
case 'delay' :
162
162
this . modS [ t ] [ c ] = this . schema [ t ] [ c ] ;
163
163
164
164
o . passthrough = o . passthrough || { } ;
165
165
o . passthrough . column =
166
- o . passthrough . column || `__dbmrn_${ c } _${ new Date ( ) . toString ( ) } __` ;
166
+ o . passthrough . column ||
167
+ `__dbmrn_${ c } _${ new Date ( ) . toISOString ( ) } __` ;
167
168
168
169
this . modC . push ( {
169
- t : 1 ,
170
+ t : 0 ,
170
171
a : 'renameColumn' ,
171
172
c : [ t , o . passthrough . column , c ]
172
173
} ) ;
You can’t perform that action at this time.
0 commit comments