Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed duplicate migration generation issue by passing --no-migration fixes #40 #43

Merged
merged 1 commit into from
Mar 8, 2020

Conversation

vinaydotblog
Copy link
Contributor

Laravel 5's artisan make:model ModelName command creates a model as well as migration file for the given model, you need to specify --no-migration flag in order to skip the automatic migration generation by laravel.

Because this generator tool explicitly generates migration based on given schema, we don't need that extra migration file, so we can safely always pass --no-migration flag to skip generation of that extra file.

Which ultimately fixes #40.

@tabacitu
Copy link
Contributor

tabacitu commented Mar 8, 2020

Great addition! Thank you @vinnizworld . Merging it into the v2 branch now. Let me know if you're interested in helping out with other stuff in v2 - this repo is finally getting up-to-date, and the attention it deserves, after we've taken it for granted all these years 😄

Cheers!

@tabacitu tabacitu changed the base branch from master to v2 March 8, 2020 10:47
@tabacitu tabacitu merged commit 70ad918 into laracasts:v2 Mar 8, 2020
@tabacitu tabacitu added this to In progress in Version 2 via automation Mar 9, 2020
@tabacitu tabacitu moved this from In progress to Done in Version 2 Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Version 2
  
Done
Development

Successfully merging this pull request may close these issues.

2 migrations files are generated on php artisan make:migration:schema.
2 participants