Skip to content

Commit

Permalink
Fix migrator for Laravel 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Feb 24, 2016
1 parent ca2904d commit 987a44c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Console/Commands/ModuleMigrateCommand.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Caffeinated\Modules\Console\Commands;

use App;
use Caffeinated\Modules\Modules;
use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
Expand Down Expand Up @@ -96,6 +97,10 @@ protected function migrate($slug)
$pretend = Arr::get($this->option(), 'pretend', false);
$path = $this->getMigrationPath($slug);

if (floatval(App::version()) > 5.1) {
$pretend = ['pretend' => $pretend];
}

$this->migrator->run($path, $pretend);

// Once the migrator has run we will grab the note output and send it out to
Expand Down

0 comments on commit 987a44c

Please sign in to comment.