Skip to content

Migrations: Detect primary key property renames #6404

Closed as not planned
Closed as not planned

Description

@bricelam

Similar to #5155 (but perhaps not as useful), we could also detect renamed properties that are part of the primary key if...

  1. The number of primary key properties are the same, and
  2. The would-be-added property is in the same position as a would-be-removed property

Activity

  1. bricelam commented on Aug 24, 2016

    @bricelam
    ContributorAuthor

    I need to think about it more, but my initial feeling is that it becomes even less useful for alternate keys, and indices.

  2. bricelam commented on Aug 24, 2016

    @bricelam
    ContributorAuthor

    Also, I wonder if just doing structural matching (e.g. everything is the same except the name) would cover all these cases for much cheaper.

  3. added this to the 1.1.0 milestone on Aug 25, 2016
  4. removed this from the 1.1.0 milestone on Aug 25, 2016
  5. added this to the 1.1.0 milestone on Aug 25, 2016
  6. divega commented on Aug 25, 2016

    @divega
    Contributor

    Triage: we want to have a design discussion about this, including @rowanmiller.

  7. removed this from the 1.1.0 milestone on Sep 12, 2016
  8. added this to the 1.1.0 milestone on Sep 13, 2016
  9. bricelam commented on Sep 21, 2016

    @bricelam
    ContributorAuthor

    Closing in favor of doing #6582 instead.

  10. removed this from the 1.1.0 milestone on Sep 21, 2016
  11. removed their assignment
    on Sep 21, 2016
  12. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions