mongoengine-migrate
mongoengine-migrate copied to clipboard
Consider inheritance while dropping document in `CreateDocument`/`DropDocument`
CreateDocument.run_backward and DropDocument.run_forward methods drop documents from database while migration run. But now they not consider model inheritance, and therefore drop all documents.
It's needed to add inheritance (_cls
field) to these actions.