File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ protected function setUpDatabase()
3434
3535 DB ::statement ('PRAGMA foreign_keys = ON ' );
3636
37- $ this ->artisan ('migrate ' , ['--database ' => 'testing ' ]);
37+ $ this ->artisan ('migrate ' , [
38+ '--database ' => 'testing ' ,
39+ '--realpath ' => __DIR__ . '/fixture/database/migrations/ ' ,
40+ ]);
3841 $ this ->seeArtisanOutput (__DIR__ . '/migrate.output.txt ' );
3942 }
4043
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ public function register()
1212
1313 public function boot ()
1414 {
15- $ this ->loadMigrationsFrom (__DIR__ . '/../../database/migrations/ ' );
15+ if (method_exists ($ this , 'loadMigrationsFrom ' )) {
16+ $ this ->loadMigrationsFrom (__DIR__ . '/../../database/migrations/ ' );
17+ }
1618 }
1719
1820 private function registerAliases ()
You can’t perform that action at this time.
0 commit comments