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

Interactive mode for "makemigrations" command

Open bdragon300 opened this issue 4 years ago • 0 comments

When user executes makemigrations command, in some cases it could be impossible to build migrations chain because of incorrect schema state. For example if some field marked as "required" but the default value has not set.

Like in Django we could enter to interactive mode in this case and ask user to type additional info, python expression for instance. For the case when default value is missed, we can ask its value. Pay attention that default can be either a constant or callable.

I suppose that entering to interactive mode could be implemented in schema checking function (see #9).

bdragon300 avatar Nov 16 '20 19:11 bdragon300