Skip to content

Commit 4ddee22

Browse files
committed
* Plugin upgraded to be used in Laravel version >=5.5.
1 parent 92aceff commit 4ddee22

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"name": "Jose Lorente",
77
"email": "jose.lorente.martin@gmail.com"
88
}],
9-
"require": {},
9+
"require": {
10+
"php": ">=7.0.0",
11+
"illuminate/support": "~5.6 || ^6.0"
12+
},
1013
"autoload": {
1114
"psr-4": {
1215
"Jlorente\\DataMigrations\\": "src/"

src/Console/Commands/MakeMigrateDataCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ class MakeMigrateDataCommand extends MigrateMakeCommand
2525
protected $signature = 'make:data-migration {name : The name of the migration.}
2626
{--create= : The table to be created.}
2727
{--table= : The table to migrate.}
28-
{--path= : The location where the migration file should be created.}';
28+
{--path= : The location where the migration file should be created.}
29+
{--realpath : Indicate any provided migration file paths are pre-resolved absolute paths}
30+
{--fullpath : Output the full path of the migration}';
2931
protected $description = 'Create a new data migration file';
3032

3133
}

src/Console/Commands/MigrateDataCommand.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ class MigrateDataCommand extends MigrateCommand
2828
* @var string
2929
*/
3030
protected $signature = 'migrate-data {--database= : The database connection to use.}
31-
{--force : Force the operation to run when in production.}
32-
{--path= : The path of migrations files to be executed.}
33-
{--pretend : Dump the SQL queries that would be run.}
34-
{--seed : Indicates if the seed task should be re-run.}
35-
{--step : Force the migrations to be run so they can be rolled back individually.}';
31+
{--force : Force the operation to run when in production}
32+
{--path=* : The path(s) to the migrations files to be executed}
33+
{--realpath : Indicate any provided migration file paths are pre-resolved absolute paths}
34+
{--pretend : Dump the SQL queries that would be run}
35+
{--seed : Indicates if the seed task should be re-run}
36+
{--step : Force the migrations to be run so they can be rolled back individually}';
3637

3738
/**
3839
* The console command description.

0 commit comments

Comments
 (0)