klen / peewee_migrate

Simple migration engine for Peewee
MIT License
352 stars 86 forks source link

Support fields constrains change #222

Closed binrush closed 1 year ago

binrush commented 1 year ago

After 0.14.0 it's not possible to change field constraint in SQLite using peewee_migrate.

This commit returns 0.14.0 behavior for Migrator.change_fields()

Changes in this PR

change_field() replaces existing field with new one with the same name added unit test

cc/ @klen

binrush commented 1 year ago

CI failure does not seem to be related to commit

klen commented 1 year ago

@binrush Thank you!