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] ``` 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')); 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'));