Skip to content

Bug - Web UI Does not Report Dropped Foreign Keys when migrating from MySQL #1318

Description

@rossd-bitquill

Migrating from MySQL instance, Foreign key constraint was dropped during migration process due to ON DELETE CASCADE clause that could no be parsed. Web UI did not report that the foreign key had been dropped.

Error Message (as seen in the logs):
Unexpected condition {"condition": "Can't add foreign key with statement ALTER TABLE product_reorders ADD CONSTRAINT product_reorders_ibfk_1 FOREIGN KEY (product_id) REFERENCES product (product_id) ON DELETE CASCADE: rpc error: code = InvalidArgument desc = The foreign key product_reorders_ibfk_1 in the table product_reorders cannot have an ON DELETE CASCADE referential action. The referenced table product has already a delete cascading effect on the referencing table product_reorders through an IN PARENT ON DELETE CASCADE clause."}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions