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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: