Skip to content

Commit b681257

Browse files
committed
fix(resolve): Check if resolved version has plugin support
fix #425
1 parent 68de844 commit b681257

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bin/db-migrate

+6-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ resolve( 'db-migrate', {
3333
}
3434

3535
dbmigrate = DBMigrate.getInstance();
36-
dbmigrate.registerAPIHook()
37-
.then( function() {
36+
if(dbmigrate.registerAPIHook)
37+
dbmigrate.registerAPIHook()
38+
.then( function() {
3839

40+
dbmigrate.run();
41+
} );
42+
else
3943
dbmigrate.run();
40-
} );
4144
} );

0 commit comments

Comments
 (0)