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

aerich try to Rename field. I am just goint to add a new field #145

Open vadim-shadrin opened 3 years ago

vadim-shadrin commented 3 years ago

I have the model

class Image(TimestampedMixin, Model):
    id = fields.IntField(pk=True)
    width = fields.IntField()
    height = fields.IntField()
    file = fields.CharField(max_length=64, validators=[TextLengthValidator('file', 1, 255)])

But when I add a new field
test = fields.CharField(max_length=64) Aerich ask question: Rename file to test? [True]:

Why? How to add field in existing model?

long2ice commented 3 years ago

What's the version?

vadim-shadrin commented 3 years ago

What's the version?

aerich==0.5.0

long2ice commented 3 years ago

Try latest