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
Post a Comment