Update laravel/cli/tasks/migrate/migrator.php
This commit is contained in:
parent
a5c5d70bd6
commit
c55a8f49dd
|
@ -105,17 +105,17 @@ public function rollback($arguments = array())
|
|||
|
||||
// If bundles supplied, filter migrations to rollback only bundles'
|
||||
// migrations.
|
||||
if (count($arguments) > 0)
|
||||
{
|
||||
$bundles = $arguments;
|
||||
|
||||
if ( ! is_array($bundles)) $bundles = array($bundles);
|
||||
|
||||
$migrations = array_filter($migrations, function($migration) use ($bundles)
|
||||
{
|
||||
return in_array($migration['bundle'], $bundles);
|
||||
});
|
||||
}
|
||||
if (count($arguments) > 0)
|
||||
{
|
||||
$bundles = $arguments;
|
||||
|
||||
if ( ! is_array($bundles)) $bundles = array($bundles);
|
||||
|
||||
$migrations = array_filter($migrations, function($migration) use ($bundles)
|
||||
{
|
||||
return in_array($migration['bundle'], $bundles);
|
||||
});
|
||||
}
|
||||
|
||||
if (count($migrations) == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue