<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 26 03:57:26 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/DBAL-132/DBAL-132.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>[DBAL-132] wrong mysql dump generation for foreign keys</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-132</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Problem in methods Doctrine\DBAL\Platforms\AbstractPlatform::getDropForeignKeySQL() and Doctrine\DBAL\Platforms\AbstractPlatform::getCreateForeignKeySQL()&lt;/p&gt;

&lt;p&gt;This methods do not receive FK name and don&apos;t put it in sql dump. While executing dump, mysql autogenerate FK names, but at the migration generation moment doctrine knowns nothing about them.&lt;/p&gt;

&lt;p&gt;I think, doctrine must generate this names and put it into the schema.&lt;/p&gt;

&lt;p&gt;Autogenerated migrations in mysql with fk are unusable.&lt;/p&gt;

&lt;p&gt;Doctrine migrations:migrate in current doctrine version:&lt;br/&gt;
up:&lt;br/&gt;
ALTER TABLE Catalog_Field ADD CONSTRAINT FOREIGN KEY (groupId) REFERENCES Catalog_FieldGroup(id)&lt;br/&gt;
down:&lt;br/&gt;
ALTER TABLE Catalog_Field DROP FOREIGN KEY&lt;/p&gt;

&lt;p&gt;should be:&lt;br/&gt;
up:&lt;br/&gt;
ALTER TABLE Catalog_Field ADD CONSTRAINT Catalog_Field_ibfk_2 FOREIGN KEY (groupId) REFERENCES Catalog_FieldGroup(id)&lt;br/&gt;
down:&lt;br/&gt;
ALTER TABLE Catalog_Field DROP FOREIGN KEY catalog_Field_ibfk_2&lt;/p&gt;


&lt;p&gt;see: &lt;a href=&quot;https://github.com/doctrine/migrations/issues/32&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/issues/32&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/migrations/issues/35&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/issues/35&lt;/a&gt;&lt;/p&gt;</description>
                <environment>PHP 5.3.3-7+squeeze1 with Suhosin-Patch, Debian GNU/Linux 6.0.1 (squeeze)&lt;br/&gt;
</environment>
            <key id="12735">DBAL-132</key>
            <summary>wrong mysql dump generation for foreign keys</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="zerkalica">Stefan Zerkalica</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Jun 2011 08:05:39 +0000</created>
                <updated>Sun, 31 Jul 2011 12:10:53 +0000</updated>
                    <resolved>Sun, 31 Jul 2011 12:10:53 +0000</resolved>
                            <version>2.0.5</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16253" author="beberlei" created="Sun, 31 Jul 2011 12:10:53 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>