From b3a7442bc4737d7c7c53a24fff21ea7a4ed8b32e Mon Sep 17 00:00:00 2001 From: Steffen Breiler Date: Tue, 7 Aug 2018 12:36:24 +0200 Subject: [PATCH 1/3] Update RevisionsTableCommand.php Rename fire() to handle() to work for new laravel version --- src/Laravel/RevisionsTableCommand.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Laravel/RevisionsTableCommand.php b/src/Laravel/RevisionsTableCommand.php index ae40797..c2ac979 100644 --- a/src/Laravel/RevisionsTableCommand.php +++ b/src/Laravel/RevisionsTableCommand.php @@ -30,11 +30,20 @@ public function __construct(Filesystem $files, Composer $composer) $this->files = $files; $this->composer = $composer; } + + /** + * Alias for handle() + * Backward compatibility + */ + public function fire() + { + return $this->handle(); + } /** * Execute the console command. */ - public function fire() + public function handle() { $path = $this->createBaseMigration(); $this->files->put($path, $this->files->get(__DIR__.'/../migrations/revisions.stub')); From 7bf3fd4ac8d0fc7633dabece29b17069fd20a9be Mon Sep 17 00:00:00 2001 From: Steffen Breiler Date: Tue, 7 Aug 2018 13:15:34 +0200 Subject: [PATCH 2/3] Update README.md Add command "php artisan revisions:upgrade-5.3" --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7cd8713..abeeae3 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ return [ ``` ~$ php artisan revisions:table +~$ php artisan revisions:upgrade-5.3 ~$ php artisan migrate [--database=custom_connection] ``` From 70d56b6be8ca187f0707a56fa58108649c4dae57 Mon Sep 17 00:00:00 2001 From: Steffen Breiler Date: Tue, 7 Aug 2018 13:17:00 +0200 Subject: [PATCH 3/3] Update RevisionsUpgradeCommand.php Rename fire() to handle() to work for new laravel version --- src/Laravel/RevisionsUpgradeCommand.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Laravel/RevisionsUpgradeCommand.php b/src/Laravel/RevisionsUpgradeCommand.php index 08d410e..bcc4dfc 100644 --- a/src/Laravel/RevisionsUpgradeCommand.php +++ b/src/Laravel/RevisionsUpgradeCommand.php @@ -30,11 +30,20 @@ public function __construct(Filesystem $files, Composer $composer) $this->files = $files; $this->composer = $composer; } + + /** + * Alias for handle() + * Backward compatibility + */ + public function fire() + { + return $this->handle(); + } /** * Execute the console command. */ - public function fire() + public function handle() { $path = $this->createBaseMigration(); $this->files->put($path, $this->files->get(__DIR__.'/../migrations/upgrade-5.3.stub'));