tortoise / aerich

A database migrations tool for TortoiseORM, ready to production.
https://github.com/tortoise/aerich
Apache License 2.0
808 stars 91 forks source link

fields.DecimalField can`t change max_digits, decimal_places by migrate #246

Closed panla closed 2 years ago

panla commented 2 years ago

env

desc

longitude = fields.DecimalField(max_digits=12, decimal_places=9)

if change it to

longitude = fields.DecimalField(max_digits=16, decimal_places=14)

aerich cant`t generate migrate file.

Mukhametvaleev commented 2 years ago

I have the same issue too :( Aerich shows "No changes detected"

panla commented 2 years ago

我也有同样的问题 :( Aerich 显示“没有检测到变化”

final, write a migration sql file to change it.