Skip to content

PK columns with FK constraints don't migrate  #45

@tonykaralis

Description

@tonykaralis

This bug was found when fixing #43.

One suggestion was to drop all foreign keys then recreate them in order to allow for the primary keys to be migrated. @oskardudycz suggested a better alternative whereby we simply disable the constraints, run migrations and then re-enable them after, see https://stackoverflow.com/a/49584660/10966454.

Commit with failing test, tonykaralis@6b159f3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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