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

Add `--policy` parameter to cli

Open bdragon300 opened this issue 4 years ago • 0 comments

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.

bdragon300 avatar Nov 13 '20 20:11 bdragon300