bdragon300 / mongoengine-migrate

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

Check field schema errors on makemigrations command #9

Open bdragon300 opened 3 years ago

bdragon300 commented 3 years ago

When user performs makemigrations command it's needed to check some incorrect states which a field could have. If error has detected then process should be interrupted with a message with advice.

For example, if a field at the same time has required=True flag and empty or null default.

Also this issue about to move AlterField._fix_field_params method to BaseFieldAction class and implement such schema check there.