File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ public function fire()
33
33
34
34
$ defaultConn = $ config ->get ('database.default ' );
35
35
$ database = $ config ->get ("database.connections. {$ defaultConn }.database " );
36
-
37
- if ($ defaultConn !== 'sqlite ' ) {
38
- $ this ->info ("Non-file based db detected: <comment> $ defaultConn </comment> " );
36
+ $ driver = $ config -> get ( " database.connections. { $ defaultConn } .driver " );
37
+ if ($ driver !== 'sqlite ' ) {
38
+ $ this ->info ("Non-file based db detected: <comment> $ driver </comment> " );
39
39
} else {
40
40
$ this ->createDb ($ database );
41
41
}
42
42
$ artisan ->call ('migrate ' );
43
43
44
- $ truncateMethod = 'truncate ' . ucfirst ($ defaultConn ) . 'Db ' ;
44
+ $ truncateMethod = 'truncate ' . ucfirst ($ driver ) . 'Db ' ;
45
45
if ($ config ->get ('setup-test-db::truncate ' , false ) && method_exists ($ this , $ truncateMethod )) {
46
46
$ this ->$ truncateMethod ($ database );
47
47
}
You can’t perform that action at this time.
0 commit comments