Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-691

[GH-435] [DBAL-400] Fix adding primary key during table alteration in MySQL

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5, 2.4.2
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of deeky666:

      Url: https://github.com/doctrine/dbal/pull/435

      Message:

      This fixes a table alteration scenario in MySQL where a table currently has no primary key and is altered to add a primary key. This currently fails as there is no check whether the index to create is a primary key. Instead a UNIQUE INDEX is scheduled to be created and results in a syntax error.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-435] was closed:
        https://github.com/doctrine/dbal/pull/435

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-435] was closed: https://github.com/doctrine/dbal/pull/435
        Show
        Guilherme Blanco added a comment - Merged: https://github.com/doctrine/dbal/commit/8b28a9a1d1dfafb7cb973bb0bacf057d097885aa

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: