Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:

      Description

      I create entities from doctrine getting started tutorial http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html
      It's Bug, User, Project (in attach)
      and create config migrations.yml (in attach)

      after that i run command "./doctrine migrations:diff" which generated migration file Version20110115224434.php (in attach)
      "./doctrine migrations:migrate" work normal
      but "./doctrine migrations:migrate 0" dosn't work:

      Migrating down to 0 from 20110115224434

      – reverting 20110115224434

      -> ALTER TABLE bug_product DROP FOREIGN KEY
      Migration 20110115224434 failed during Execution. Error SQLSTATE[HY000]: General error: 1005 Can't create table 'doctrine2.#sql-531_108' (errno: 150)

      [PDOException]
      SQLSTATE[HY000]: General error: 1005 Can't create table 'doctrine2.#sql-531_108' (errno: 150)

      1. migrations.yml
        0.1 kB
        Stepan Tanasiychuk
      2. Version20110115224434.php
        2 kB
        Stepan Tanasiychuk

        Activity

        Stepan Tanasiychuk created issue -
        Stepan Tanasiychuk made changes -
        Field Original Value New Value
        Description I create entities from doctrine getting started tutorial http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html
        It's Bug, User, Project (in attach)
        and create config migrations.yml (in attach)

        after that i run command "./doctrine migrations:diff" which generated migration file Version20110115224434.php (in attach)
        "./doctrine migrations:migrate" work normal but "./doctrine migrations:migrate 0" dosn't work:
        {quote}Migrating down to 0 from 20110115224434

          -- reverting 20110115224434

             -> ALTER TABLE bug_product DROP FOREIGN KEY
        Migration 20110115224434 failed during Execution. Error SQLSTATE[HY000]: General error: 1005 Can't create table 'doctrine2.#sql-531_108' (errno: 150)


                                                                                                         
          [PDOException]
          SQLSTATE[HY000]: General error: 1005 Can't create table 'doctrine2.#sql-531_108' (errno: 150) {quote}
        I create entities from doctrine getting started tutorial http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html
        It's Bug, User, Project (in attach)
        and create config migrations.yml (in attach)

        after that i run command "./doctrine migrations:diff" which generated migration file Version20110115224434.php (in attach)
        "./doctrine migrations:migrate" work normal
        but "./doctrine migrations:migrate 0" dosn't work:
        {quote}Migrating down to 0 from 20110115224434

          -- reverting 20110115224434

             -> ALTER TABLE bug_product DROP FOREIGN KEY
        Migration 20110115224434 failed during Execution. Error SQLSTATE[HY000]: General error: 1005 Can't create table 'doctrine2.#sql-531_108' (errno: 150)


                                                                                                         
          [PDOException]
          SQLSTATE[HY000]: General error: 1005 Can't create table 'doctrine2.#sql-531_108' (errno: 150) {quote}
        Benjamin Eberlei made changes -
        Assignee Jonathan H. Wage [ jwage ] Benjamin Eberlei [ beberlei ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Stepan Tanasiychuk
          • Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: