Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Labels:None
-
Environment:HideLinux stfalcon-laptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux
Installed packages, channel pear.doctrine-project.org:
======================================================
Package Version State
DoctrineCommon 2.0.0 stable
DoctrineDBAL 2.0.0 stable
DoctrineORM 2.0.0 stable
DoctrineMigration from git://github.com/doctrine/migrations.git (2.0 alpha?)
ShowLinux stfalcon-laptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux Installed packages, channel pear.doctrine-project.org: ====================================================== Package Version State DoctrineCommon 2.0.0 stable DoctrineDBAL 2.0.0 stable DoctrineORM 2.0.0 stable DoctrineMigration from git://github.com/doctrine/migrations.git (2.0 alpha?)
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)
Activity
| 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} |
| Assignee | Jonathan H. Wage [ jwage ] | Benjamin Eberlei [ beberlei ] |