mongoengine-migrate
mongoengine-migrate copied to clipboard
Migrations for MongoEngine inspired by Django
`URLField` has `url_regex` attribute with default value described in `URLField._URL_REGEX` constant. It's needed to implement "change" method in `URLFieldHandler` which will get invoked if user modified `url_regex` attribute value. It...
Field declaration can contains `choices` attribute which sets possible values which this field can have. `choices` in turn can be an array of any value including `Document` and `EmbeddedDocument` classes....
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)...
GridFS fields are: FileField, ImageField. The related collection should be deleted if field of type GridFS is deleted or changed type to smth another. Also keep in mind that the...
The related collection should be deleted if field of type `SequenceField` is deleted or changed type to smth another. Also keep in mind that the collection can be in different...
GridFS fields are: `FileField`, `ImageField`. It's needed to track `collection_name` of GridFS field parameter and rename the related collection if it has changed. Also keep in mind that the collection...
It's needed to track `SequenceField.collection_name` parameter and rename the related collection if it has changed. Also keep in mind that the collection can be in different connection (`SequenceField.db_alias`). Also don't...
When user executes `makemigrations` command, in some cases it could be impossible to build migrations chain because of incorrect schema state. For example if some field marked as "required" but...
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...
Variables in `flags` module in lowercase. They are used in `MongoengineMigrate` class which means this class is depends on them. Also it makes difficult to use `MongoengineMigrate` class separately from...