<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 20:17:03 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DMIG-17/DMIG-17.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DMIG-17] bug in reverting migrations</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-17</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I create entities from doctrine getting started tutorial &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html&lt;/a&gt;&lt;br/&gt;
It&apos;s Bug, User, Project (in attach)&lt;br/&gt;
and create config migrations.yml (in attach)&lt;/p&gt;

&lt;p&gt;after that i run command &quot;./doctrine migrations:diff&quot; which generated migration file Version20110115224434.php (in attach)&lt;br/&gt;
&quot;./doctrine migrations:migrate&quot; work normal &lt;br/&gt;
but &quot;./doctrine migrations:migrate 0&quot; dosn&apos;t work:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Migrating down to 0 from 20110115224434&lt;/p&gt;

&lt;p&gt;  &amp;#8211; reverting 20110115224434&lt;/p&gt;

&lt;p&gt;     -&amp;gt; ALTER TABLE bug_product DROP FOREIGN KEY &lt;br/&gt;
Migration 20110115224434 failed during Execution. Error SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;HY000&amp;#93;&lt;/span&gt;: General error: 1005 Can&apos;t create table &apos;doctrine2.#sql-531_108&apos; (errno: 150)&lt;/p&gt;



&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&gt;                                                                                 &lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;HY000&amp;#93;&lt;/span&gt;: General error: 1005 Can&apos;t create table &apos;doctrine2.#sql-531_108&apos; (errno: 150) &lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment>Linux stfalcon-laptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux&lt;br/&gt;
Installed packages, channel pear.doctrine-project.org:&lt;br/&gt;
======================================================&lt;br/&gt;
Package        Version State&lt;br/&gt;
DoctrineCommon 2.0.0   stable&lt;br/&gt;
DoctrineDBAL   2.0.0   stable&lt;br/&gt;
DoctrineORM    2.0.0   stable&lt;br/&gt;
&lt;br/&gt;
DoctrineMigration from &lt;a href=&quot;git://github.com/doctrine/migrations.git&quot;&gt;git://github.com/doctrine/migrations.git&lt;/a&gt; (2.0 alpha?)&lt;br/&gt;
</environment>
            <key id="12305">DMIG-17</key>
            <summary>bug in reverting migrations</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="stfalcon">Stepan Tanasiychuk</reporter>
                        <labels>
                    </labels>
                <created>Sat, 15 Jan 2011 16:06:19 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:34 +0000</updated>
                                                                            <due></due>
                    <votes>4</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="15981" author="k-fish" created="Mon, 13 Jun 2011 22:42:57 +0000"  >&lt;p&gt;The problem is the missing constraint name. I looked up the name the constraint had and added it to the statement and it worked.&lt;/p&gt;

&lt;p&gt;Since the names are generated by MySQL automatically, looking them up when generating the migration will probably not work, because the generated name might differ on another setup. What would work is creating names for the constraints and use them in create and drop operations.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10910" name="Entities.zip" size="1517" author="stfalcon" created="Sat, 15 Jan 2011 16:06:19 +0000" />
                    <attachment id="10911" name="migrations.yml" size="152" author="stfalcon" created="Sat, 15 Jan 2011 16:06:19 +0000" />
                    <attachment id="10912" name="Version20110115224434.php" size="2018" author="stfalcon" created="Sat, 15 Jan 2011 16:06:19 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>