Commit bfddfbf3 authored by Thibaud Dauce's avatar Thibaud Dauce

Update for Laravel 5.4

parent d2ebff4a
......@@ -4,11 +4,11 @@
"type": "library",
"require": {
"php": ">=7.0.0",
"illuminate/support": "^5.3",
"illuminate/console": "^5.3",
"symfony/finder": "^3.1",
"symfony/console": "^3.1",
"illuminate/database": "^5.3"
"illuminate/support": "^5.4",
"illuminate/console": "^5.4",
"symfony/finder": "^3.2",
"symfony/console": "^3.2",
"illuminate/database": "^5.4"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
......
This diff is collapsed.
......@@ -7,5 +7,13 @@ use Illuminate\Database\Console\Migrations\MigrateCommand as BaseMigrateCommand;
class MigrateCommand extends BaseMigrateCommand
{
protected $signature = 'migrate {--database= : The database connection to use.}
{--force : Force the operation to run when in production.}
{--path= : The path of migrations files to be executed.}
{--pretend : Dump the SQL queries that would be run.}
{--seed : Indicates if the seed task should be re-run.}
{--step : Force the migrations to be run so they can be rolled back individually.}
{--recursive : Indicates if the migrations should be run recursively (nested directories).}';
use RecursiveMigrationCommand;
}
......@@ -27,7 +27,7 @@ class LaravelRecursiveMigrationsServiceProvider extends ServiceProvider
});
$this->app->extend('command.migrate.refresh', function () {
return new RefreshCommand($this->app['migrator']);
return new RefreshCommand;
});
$this->app->extend('command.migrate.reset', function () {
......@@ -38,4 +38,4 @@ class LaravelRecursiveMigrationsServiceProvider extends ServiceProvider
return new StatusCommand($this->app['migrator']);
});
}
}
\ No newline at end of file
}
......@@ -43,10 +43,10 @@ trait RecursiveMigrationCommand
*/
public function call($command, array $arguments = [])
{
if (starts_with($command, 'migrate')) {
if (starts_with($command, 'migrate') and $command !== 'migrate:install') {
$arguments['--recursive'] = $this->option('recursive');
}
parent::call($command, $arguments);
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment