Doctrine Migrations
  1. Doctrine Migrations
  2. DMIG-20

migrations try to create an index with name "primary" for ManyToMany associations

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Labels:
      None

      Description

      For ManyToMany associations, migrations try to create a unique index on (joinColumn, inverseJoinColumn) having name "primary":

      CREATE UNIQUE INDEX primary ON join_table (joinColumn, inverseJoinColumn);

      Which results in a syntax error on MySQL (primary is also an invalid key name).

        Activity

        Hide
        arnaud-lb added a comment -
        Show
        arnaud-lb added a comment - Fixed by http://www.doctrine-project.org/jira/browse/DBAL-126
        Hide
        Karsten Dambekalns added a comment -

        Caused by / related to DBAL-126

        Show
        Karsten Dambekalns added a comment - Caused by / related to DBAL-126

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            arnaud-lb
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: