<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 19:22:44 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-346/DBAL-346.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-346] Generated schema fails on MySQL (BLOB/TEXT cant have DEFAULT value)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-346</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In my symfony 2.1 project i was including &lt;a href=&quot;https://github.com/schmittjoh/JMSPaymentCoreBundle&quot; class=&quot;external-link&quot;&gt;JMSPaymentCoreBundle&lt;/a&gt; and did the vanilla installation.&lt;/p&gt;

&lt;p&gt;After that i ran&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
php app/console doctrine:schema:update --dump-sql
php app/console doctrine:schema:update --force
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A lot of schema updates were done. I ran it again, and two schema updates were still showing up.&lt;br/&gt;
Running the command again, and they still show up.&lt;/p&gt;

&lt;p&gt;I then tried to run the two schema updates against my database and MySQL complains with the following error:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Error: 1101 - BLOB/TEXT column &apos;extended_data&apos; can&apos;t have a &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; value
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;According to the &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/blob.html&quot; class=&quot;external-link&quot;&gt;Documentation&lt;/a&gt; BLOB/TEXT indeed cannot have default values. I am not sure why Doctrine thinks it has to set this default value.&lt;/p&gt;

&lt;p&gt;The statements look like this:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
sascha@debian:/&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/myproject/Symfony$ php app/console doctrine:schema:update --dump-sql
ALTER TABLE payment_instructions CHANGE extended_data extended_data LONGTEXT NOT NULL COMMENT &apos;(DC2Type:extended_payment_data)&apos;;
ALTER TABLE financial_transactions CHANGE extended_data extended_data LONGTEXT DEFAULT NULL COMMENT &apos;(DC2Type:extended_payment_data)&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I already reported this problem in the JMSPaymentCoreBundle &lt;a href=&quot;https://github.com/schmittjoh/JMSPaymentCoreBundle/issues/57&quot; class=&quot;external-link&quot;&gt;Issue&lt;/a&gt; Queue where  i then was referred to over here.&lt;/p&gt;

&lt;p&gt;Also, i am not sure if Doctrine DBAL is the best match for this issue, so if it is wrong please move it to the right project issue queue.&lt;/p&gt;

&lt;p&gt;Thank you very much and best of Regards!&lt;br/&gt;
Sascha&lt;/p&gt;</description>
                <environment>Symfony 2.1.x (dev/master), Doctrine 2.2.3, MySQL 5.5.x</environment>
            <key id="14046">DBAL-346</key>
            <summary>Generated schema fails on MySQL (BLOB/TEXT cant have DEFAULT value)</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="thenetexperts">Sascha Ahmann</reporter>
                        <labels>
                        <label>Cli</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 19 Sep 2012 10:10:10 +0000</created>
                <updated>Thu, 20 Sep 2012 17:29:30 +0000</updated>
                    <resolved>Thu, 20 Sep 2012 17:29:30 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>