Open trim21 opened 5 years ago
Found workaround. Manually replace onstraints=[SQL("DEFAULT 0")]
with default=0
, and the migrate will work as excpted.
I'm not quite sure that is my mistake or its a bug of
peewee_migrate
.left is my first migration, and i didn't change
followed
table, but edited another table. Then I generated a migration.But i found that
pw.CharField
andpw.InteferField
are both consider changed. Seems that all field with default value are considered changed and automatically get a migration.
I encounter the same problem。It is a bug,the default value show not generate "constraints" param,but generate "default" param
@zhjchina I try pwiz
in peewee
package, it has same behavior.
I'm not quite sure that is my mistake or its a bug of
peewee_migrate
.left is my first migration, and i didn't change
followed
table, but edited another table. Then I generated a migration.But i found that
pw.CharField
andpw.InteferField
are both consider changed. Seems that all field with default value are considered changed and automatically get a migration.