tortoise / aerich

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

Aerich doesn't see on_delete parameter change of foreign key #298

Open ivictor777 opened 1 year ago

ivictor777 commented 1 year ago

I change from group = fields.ForeignKeyField('models.Group', null=True) to group = fields.ForeignKeyField('models.Group', on_delete=RESTRICT, null=True)

then

bash # aerich migrate
No changes detected

Can you fix this please?