Skip to content

Commit

Permalink
[6.x] Allow multiple paths to be passed to migrate fresh and migrate …
Browse files Browse the repository at this point in the history
…refresh (#31381)

* Allow multiple paths to be passed to migrate fresh and migrate refresh

* Update FreshCommand.php

* Update RefreshCommand.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
axlon and taylorotwell committed Feb 6, 2020
1 parent 6eb7528 commit 863f153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Console/Migrations/FreshCommand.php
Expand Up @@ -94,7 +94,7 @@ protected function getOptions()
['drop-views', null, InputOption::VALUE_NONE, 'Drop all tables and views'],
['drop-types', null, InputOption::VALUE_NONE, 'Drop all tables and types (Postgres only)'],
['force', null, InputOption::VALUE_NONE, 'Force the operation to run when in production'],
['path', null, InputOption::VALUE_OPTIONAL, 'The path to the migrations files to be executed'],
['path', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The path(s) to the migrations files to be executed'],
['realpath', null, InputOption::VALUE_NONE, 'Indicate any provided migration file paths are pre-resolved absolute paths'],
['seed', null, InputOption::VALUE_NONE, 'Indicates if the seed task should be re-run'],
['seeder', null, InputOption::VALUE_OPTIONAL, 'The class name of the root seeder'],
Expand Down
8 changes: 1 addition & 7 deletions Console/Migrations/RefreshCommand.php
Expand Up @@ -138,17 +138,11 @@ protected function getOptions()
{
return [
['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use'],

['force', null, InputOption::VALUE_NONE, 'Force the operation to run when in production'],

['path', null, InputOption::VALUE_OPTIONAL, 'The path to the migrations files to be executed'],

['path', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The path(s) to the migrations files to be executed'],
['realpath', null, InputOption::VALUE_NONE, 'Indicate any provided migration file paths are pre-resolved absolute paths'],

['seed', null, InputOption::VALUE_NONE, 'Indicates if the seed task should be re-run'],

['seeder', null, InputOption::VALUE_OPTIONAL, 'The class name of the root seeder'],

['step', null, InputOption::VALUE_OPTIONAL, 'The number of migrations to be reverted & re-run'],
];
}
Expand Down

0 comments on commit 863f153

Please sign in to comment.