<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed May 22 17:54:34 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/DDC-2238/DDC-2238.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>[DDC-2238] doctrine:schema:update partially broken</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2238</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;the app/console doctrine:schema:update command generates a seemingly random number of statements like these:&lt;/p&gt;

&lt;p&gt;ALTER TABLE geodata ALTER humidity SET ;&lt;br/&gt;
ALTER TABLE geodata ALTER lake SET ;&lt;br/&gt;
ALTER TABLE message ALTER translate SET ;&lt;/p&gt;


&lt;p&gt;which are obvious invalid SQL commands. The mappings are fine, validate and the application works just fine. Here&apos;s an example from the mapping files including two of the above statements:&lt;/p&gt;

&lt;p&gt;&amp;lt;field name=&quot;coast&quot; type=&quot;boolean&quot;/&amp;gt;&lt;br/&gt;
&amp;lt;field name=&quot;lake&quot; type=&quot;boolean&quot;/&amp;gt;&lt;br/&gt;
&amp;lt;field name=&quot;river&quot; type=&quot;boolean&quot;/&amp;gt;&lt;br/&gt;
&amp;lt;field name=&quot;humidity&quot; type=&quot;float&quot;/&amp;gt;&lt;br/&gt;
&amp;lt;field name=&quot;biome&quot; type=&quot;string&quot;/&amp;gt;&lt;/p&gt;


&lt;p&gt;I am using doctrine2-spatial as an extension for GIS information. This problem shows up both in entities using spatial data and entities not using spatial data.&lt;/p&gt;

&lt;p&gt;I&apos;ll gladly help debug this, as right now I can&apos;t update my dev database with --force, I need to use --dump-sql and filter out the invalid lines.&lt;/p&gt;
</description>
                <environment>OS X 10.7.5&lt;br/&gt;
PHP 5.4.4&lt;br/&gt;
Postgres SQL 9.1.6&lt;br/&gt;
&lt;br/&gt;
also confirmed on:&lt;br/&gt;
Linux (Debian testing, Kernel 2.6.32)&lt;br/&gt;
PHP 5.4.4&lt;br/&gt;
PostgreSQL 9.1.9&lt;br/&gt;
Doctrine 2.3.2</environment>
            <key id="14378">DDC-2238</key>
            <summary>doctrine:schema:update partially broken</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="3">Duplicate</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tom">Tom Vogt</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Fri, 11 Jan 2013 18:19:11 +0000</created>
                <updated>Wed, 1 May 2013 12:37:16 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:37:05 +0000</resolved>
                            <version>2.3</version>
                                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19286" author="beberlei" created="Sat, 12 Jan 2013 09:05:50 +0000"  >&lt;p&gt;Can you dump the SchemaDiff/ColumnDiff instances that are returned from lib/Doctrine/DBAL/Schema/Comparator.php?&lt;/p&gt;</comment>
                    <comment id="19291" author="tom" created="Sat, 12 Jan 2013 10:57:26 +0000"  >&lt;p&gt;requested dump of SchemaDiff&lt;/p&gt;</comment>
                    <comment id="19292" author="tom" created="Sat, 12 Jan 2013 10:58:51 +0000"  >&lt;p&gt;added in the file schemadiff.txt - I added this in Schematool.php - getUpdateSchemaSql():&lt;/p&gt;

&lt;p&gt;        $comparator = new Comparator();&lt;br/&gt;
        $schemaDiff = $comparator-&amp;gt;compare($fromSchema, $toSchema);&lt;br/&gt;
        \Doctrine\Common\Util\Debug::dump($schemaDiff, 6);&lt;/p&gt;

&lt;p&gt;if you need other output, just tell me what entity to dump and where. I&apos;ll be happy to help.&lt;/p&gt;

&lt;p&gt;The file also contains the buggy update statements it creates towards the end. There&apos;s a few non-crucial bugs included, where it alters the geospatial columns to themselves (i.e. river.course already is a geometry/linestring). I don&apos;t worry about those because they don&apos;t break anything.&lt;/p&gt;</comment>
                    <comment id="20024" author="tom" created="Mon, 15 Apr 2013 19:26:18 +0000"  >&lt;p&gt;Is there any update on this? I&apos;m still having this issue, with many different entities, always the same problem, for example:&lt;/p&gt;

&lt;p&gt;ALTER TABLE event ALTER priority SET ;&lt;/p&gt;

&lt;p&gt;Which is an integer field on an entity that doesn&apos;t have any GIS elements, so I&apos;m not even sure if it&apos;s caused by that anymore.&lt;/p&gt;</comment>
                    <comment id="20147" author="beberlei" created="Wed, 1 May 2013 12:24:08 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=tom&quot; class=&quot;user-hover&quot; rel=&quot;tom&quot;&gt;Tom Vogt&lt;/a&gt; I added a fix for PostgreSQL today, can you verify again if this works? Its included in the 2.3 branch.&lt;/p&gt;</comment>
                    <comment id="20150" author="beberlei" created="Wed, 1 May 2013 12:37:05 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-504&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-504&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="14806">DBAL-504</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="11373" name="schemadiff.txt" size="79257" author="tom" created="Sat, 12 Jan 2013 10:57:26 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>