klen / peewee_migrate

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

Constraints do not get carried over into migrations #232

Open vethan opened 7 months ago

vethan commented 7 months ago

Adding a constraint, either in a field's parameters of through a model's Meta class does not propagate to generated migration files.

To Reproduce Steps to reproduce the behavior:

  1. Create a Model with a Check constraint
  2. Run pee_wee migrate
  3. Observe constraints are missing from migration file

Expected behavior Constraints to be added to migration file