python - If a django migration is migrated to db, what is the best practice if the migration is deleted at a later date? -


while shouldn't happen not impossible.

so in event migration has been run database , migration file has been deleted , not recoverable?

this assumes database cannot dropped.

the first approach i'd try check out last commit , recreate model changes in question migration regenerated , checked in.

and while it's have contingency plan things this, if it's real concern i'd suggest evaluating deployment process make issue less likely.


Comments

Popular posts from this blog

javascript - Why Selenium can't find an element that is graphically visible -

java - How to compare two classes -

mysql - Gateway Timeout Error on Insert 70000 record using Hibernate in Java -