tortoise / aerich

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

No changes detected at migrate after max_length change #118

Open Firezi opened 3 years ago

Firezi commented 3 years ago

Hi, i found problem with upgrade. was:

class User(models.Model):
    id = fields.CharField(max_length=32, pk=True)
    ...

i change to:

class User(models.Model):
   id = fields.CharField(max_length=40, pk=True)
   ...

After aerich upgrade i got No changes detected.

I have 2 models with user = fields.ForeignKeyField("models.User",...) and Tortoise.init_models(["app.models"], "models")

long2ice commented 3 years ago

Try latest dev branch