mongoengine-migrate icon indicating copy to clipboard operation
mongoengine-migrate copied to clipboard

Schema force reset

Open bdragon300 opened this issue 4 years ago • 0 comments

Sometimes the actual mongoengine schema could not comply with our schema dict. For example, if user wrote RunPython action, but forgot to update schema dict there. This could lead to situation when after "makemigrations" the actions could be generated which performs the same change as RunPython already did. Therefore user can get the data corruption.

This issue is about to implement cli command which simply forcibly writes current mongoengine schema to the schema dict in database.

bdragon300 avatar Nov 15 '20 20:11 bdragon300