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

Ability to run seeders in refresh migrations #434

Closed
2 tasks
Marlysson opened this issue Apr 4, 2021 · 2 comments · Fixed by #435
Closed
2 tasks

Ability to run seeders in refresh migrations #434

Marlysson opened this issue Apr 4, 2021 · 2 comments · Fixed by #435
Labels
enhancement A feature that exists, works as intended but needs to be improved

Comments

@Marlysson
Copy link
Contributor

Marlysson commented Apr 4, 2021

Describe the feature as you'd like to see it
Some way to run seeders in same command of migrate:refresh.

Run all seeders

masonite-orm migrate:refresh --seed

Run specific seeder

masonite-orm migrate:refresh --seed CustomSeeder

Related tasks:

  • Update documentation

What do we currently have to do now?
Call seeder command inside refresh migration command

  • Is this a breaking change?
@Marlysson Marlysson added the enhancement A feature that exists, works as intended but needs to be improved label Apr 4, 2021
@Marlysson Marlysson changed the title Ability to run seeders after refresh migrations Ability to run seeders in refresh migrations Apr 5, 2021
@girardinsamuel
Copy link
Contributor

Maybe it would be cleaner/easier to do ? What do you think ?
Run all seeders

masonite-orm migrate:refresh --seed

Run specific seeder

masonite-orm migrate:refresh --seed CustomSeeder

@Marlysson
Copy link
Contributor Author

@girardinsamuel Sure. I'll update the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature that exists, works as intended but needs to be improved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants