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

Consider inheritance while dropping document in `CreateDocument`/`DropDocument`

Open bdragon300 opened this issue 4 years ago • 0 comments

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.

bdragon300 avatar Dec 10 '20 21:12 bdragon300