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

Do not run makemigrations when --cached option is used #10

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

ssaornil
Copy link
Contributor

@ssaornil ssaornil commented Sep 25, 2017

I consider makemigrations to be unnecessary and dangerous when the --cached option is used. After all there shouldn't be any pending changes before running this command. Otherwise we would be fake-applying those pending migrations and that might leave the DB in an inconsistent state.

When the --cached option is used, the command should only clean the migrations table and fake-apply the existing migration files.

@ssaornil ssaornil changed the title Do not make migrations when --cached option is used Do not run makemigrations when --cached option is used Sep 25, 2017
@valdergallo valdergallo merged commit 369b953 into valdergallo:master Jan 9, 2020
@valdergallo
Copy link
Owner

tnx for help

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.

None yet

2 participants