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

One command to reset the migrations #888

Closed
valdergallo opened this issue May 6, 2016 · 3 comments
Closed

One command to reset the migrations #888

valdergallo opened this issue May 6, 2016 · 3 comments

Comments

@valdergallo
Copy link

Hi Hi, I made one command yesterday that is a lot usefull to reset the django migrations. And I would like to see this command in django-extensions :D

So, the question is ... Could you put this command in django-extensions ?

https://gist.github.com/valdergallo/772c07c56317c9dc59315a2328c7c947

@trbs
Copy link
Member

trbs commented May 6, 2016

I would be happy to include it.

Could you make a Pull Request for this ?
Please also take a look at our other commands and make this command similar in style and structure.

Since we are modifying files from users it would be good to have unittest coverage of that as well. So we can be reasonably sure that we don't break peoples code.

Lastly could we include an option to do ./manage.py migrate app_label zero ? So people can also cleanly build there models in the database again. With dependencies this might not be preferable or possible for everybody (hence optional argument).

@valdergallo
Copy link
Author

hoooooo nice

I'll get the code and check what I need to change to make one pull request

@trbs
Copy link
Member

trbs commented Aug 27, 2018

closing due to inactivity

@trbs trbs closed this as completed Aug 27, 2018
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

No branches or pull requests

2 participants