bdragon300 / mongoengine-migrate

Migrations for MongoEngine inspired by Django
Apache License 2.0
17 stars 5 forks source link

Handle `UUIDField.binary` attribute changing #31

Open bdragon300 opened 3 years ago

bdragon300 commented 3 years ago

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 convertion between Binary type and string depending on binary parameter change.