Skip to content

Commit

Permalink
[5.x] Complete tests for generate migrations command (#335)
Browse files Browse the repository at this point in the history
* Slightly switch logic

* Complete tests for generate migrations command

* Fix styling

---------

Co-authored-by: duncanmcclean <duncanmcclean@users.noreply.github.com>
  • Loading branch information
duncanmcclean and duncanmcclean authored Sep 16, 2023
1 parent 01ffc05 commit d52edf9
Show file tree
Hide file tree
Showing 2 changed files with 367 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/Console/Commands/GenerateMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function handle()
$this->generateForResource($resource);
}

if ($this->ask('Should we run your migrations?') === 'yes') {
if ($this->ask('Should we run your migrations?', 'yes') === 'yes') {
Artisan::call('migrate');
}

Expand Down
Loading

0 comments on commit d52edf9

Please sign in to comment.