Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-695

[GH-437] Don't generate foreign keys for MySQL tables that are not InnoDB

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

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

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

      Message:

      This PR adds a `supportsForeignKeyConstraintBetween($table1, $table2)` method to `Platform` allowing to check if foreign key between two tables are supported (e.g. on MySQL: InnoDB to InnoDB FK is OK, Memory to InnoFB is not).

      The MySQL implementation is also provided and `CreateSchemaSqlCollector` has been adapted to use this feature.

      This PR is related to https://github.com/doctrine/doctrine2/pull/865

        Activity

        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-865] was closed: https://github.com/doctrine/doctrine2/pull/865
        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-437] was closed: https://github.com/doctrine/dbal/pull/437

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Doctrine Bot
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: