Skip to content

Commit fd9b45f

Browse files
committed
Fix for 5.5 version
1 parent 6d39d5b commit fd9b45f

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/Console/Commands/DropTables.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class DropTables extends Command
2828

2929
/**
3030
* Run command.
31+
*
32+
* @return void
3133
*/
3234
public function handle()
3335
{

src/Console/Commands/MigrateSingle.php

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class MigrateSingle extends MigrateCommand
2222
* @var string
2323
*/
2424
protected $signature = 'migrate:single
25-
{--file : The file of migration to be executed.}
26-
{--class : The class name of migration.}
25+
{--file= : The file of migration to be executed.}
26+
{--class= : The class name of migration.}
2727
{--database= : The database connection to use.}
2828
{--force : Force the operation to run when in production.}
2929
{--pretend : Dump the SQL queries that would be run.}';
@@ -43,12 +43,24 @@ public function __construct(Migrator $migrator)
4343
parent::__construct($migrator);
4444
}
4545

46+
/**
47+
* Support for =< 5.4 versions.
48+
*
49+
* @return void
50+
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
51+
* @throws \RuntimeException
52+
*/
53+
public function fire()
54+
{
55+
$this->handle();
56+
}
57+
4658
/**
4759
* @return void
4860
* @throws FileNotFoundException
4961
* @throws RuntimeException
5062
*/
51-
public function fire()
63+
public function handle()
5264
{
5365
if (!$this->confirmToProceed()) {
5466
return;

0 commit comments

Comments
 (0)