File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments