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

ios - Is 'init' forbidden as *part* of a variable name? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

c# - Get the Class name in a class with atribute inside a attribute method -