mongoengine-migrate
mongoengine-migrate copied to clipboard
Add `--policy` parameter to cli
Every migration could obey two policies:
- "strict" (default) -- when existing field data types are checked during type convertion
- "relaxed" -- when convertion is performed over converted data types only. Data of other existing types are ignored.
The task is to add cli parameter to makemigrations
command with these values enum and pass a policy name to a migration template.