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

Check field schema errors on makemigrations command

Open bdragon300 opened this issue 4 years ago • 0 comments

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.

bdragon300 avatar Nov 13 '20 20:11 bdragon300