Skip to content

Commit

Permalink
Merge pull request #73 from sbreiler/master
Browse files Browse the repository at this point in the history
Fix #71 - Update RevisionsTableCommand.php
  • Loading branch information
jarektkaczyk authored Aug 23, 2018
2 parents c82d9d8 + 70d56b6 commit 70bd40a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ return [

```
~$ php artisan revisions:table
~$ php artisan revisions:upgrade-5.3
~$ php artisan migrate [--database=custom_connection]
```

Expand Down
11 changes: 10 additions & 1 deletion src/Laravel/RevisionsTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
11 changes: 10 additions & 1 deletion src/Laravel/RevisionsUpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 70bd40a

Please sign in to comment.