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

Migrations for MongoEngine inspired by Django

Results 27 mongoengine-migrate issues
Sort by recently updated
recently updated
newest added

Hi all, I noticed that `EnumField` choices are rendered like this: ```python CreateField('~MyEnumField', 'type', choices=(, ), ... ) ``` I would expect something like this (along with the necessary import):...

Hi all, how can I create my first migration? I'm getting: ``` myproject git:(develop): mongoengine_migrate -u mongodb://localhost:27017/myproject --log-level DEBUG makemigrations [DEBUG] Connecting to MongoDB... [INFO] MongoDB version: 4.4.3 [DEBUG] Loading...

Hey is it possible to migrate changes in custom save methods of a document? I could not determine this by reading through the docs. Below is a small example before...

Hello, I'm experimenting a bit with this project, while trying to figure out how to play with makemigrations I notice it refer to a single python module for all the...

`symbol_wrap` jinja2 filter now is used for word wrap python code during migration generation. But it wraps lines by commas, which could break python code, if such comma will be...

enhancement

When we have unset `allow_inheritance` in Document `meta` dict, we get an error while running migration: ``` [DEBUG] >> Change 'inherit': True => Traceback (most recent call last): File "mongoengine_migrate/cli.py",...

bug

It's more convenient to work with graph using dict protocol. Now it implements list protocol. It should be smth like {migration_name: MIgration_object}.

refactoring

`UUIDField` has `binary` parameter (default `True`) which designates if UUID value stores in db as bson Binary or as string. `UUIDFieldHandler.change_binary` already exists, but does nothing. It's needed to implement...

bug

`SequenceField.value_decorator` uses to get next sequence value. By default it is `int()`. But the user could set custom decorator function. We cannot do smth with this change, but it's reasonable...

enhancement

`BinaryFieldHandler.change_max_bytes` invokes when `BinaryField.max_bytes` changes its value. Now this method does nothing. It's needed to add binary document field value cutting in "by_doc" callback.

bug