Use a relative path to locate migrations

This commit is contained in:
Toby Zerner 2015-08-17 14:57:33 +09:30
parent 624e4076a5
commit a3f0bc9bff

View File

@ -136,7 +136,7 @@ class InstallCommand extends Command
$migrator = $this->container->make('Flarum\Migrations\Migrator');
$migrator->getRepository()->createRepository();
$migrator->run(base_path('core/migrations'));
$migrator->run(__DIR__ . '/../../../migrations');
foreach ($migrator->getNotes() as $note) {
$this->info($note);