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

add --step option to migrate:fresh command #24939

Closed
wants to merge 2 commits into from
Closed

add --step option to migrate:fresh command #24939

wants to merge 2 commits into from

Conversation

SjorsO
Copy link
Contributor

@SjorsO SjorsO commented Jul 23, 2018

This PR adds the --step option to the migrate:fresh command and passes it to the migrate command.

I tried to run migrate:fresh --seed --step, and then test if i could individually run back the migrations. But trying that throws a The "--step" option does not exist. error.

@laurencei
Copy link
Contributor

This doesnt really make any sense. The whole point of migrate:fresh is to wipe everything and rebuild from scratch.

If you want a stepable migration during development just use migrate?

@SjorsO
Copy link
Contributor Author

SjorsO commented Jul 23, 2018

I tried to refresh and seed my (already migrated) database with --step enabled so i could do some manual testing. The --step option is available for the migrate command, so i expected it to be available for the migrate:fresh command too. Since my database was already migrated the only way to achieve this is to manually drop all tables, then run migrate --step --seed. It would make more sense to me if i could just run migrate:fresh --seed --step.

@taylorotwell
Copy link
Member

No plans on adding this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants