Skip to content

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

@ivictor777

Description

@ivictor777

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions