<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 21:25:33 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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DMIG&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DMIG</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="36" total="36"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DMIG-41] Diff generated even if nothing changed (with solution)</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-41</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;To change this behavior:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://img849.imageshack.us/img849/9580/23052013102230134.png&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14983">DMIG-41</key>
            <summary>Diff generated even if nothing changed (with solution)</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="and">And</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 May 2013 07:23:39 +0000</created>
                <updated>Thu, 23 May 2013 07:52:15 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20424" author="ocramius" created="Thu, 23 May 2013 07:28:58 +0000"  >&lt;p&gt;What are the commands you ran?&lt;/p&gt;</comment>
                    <comment id="20427" author="and" created="Thu, 23 May 2013 07:52:15 +0000"  >&lt;p&gt;migrations:diff&lt;/p&gt;

&lt;p&gt;$this-&amp;gt;buildCodeFromSql return &apos;$this-&amp;gt;abortIf($this-&amp;gt;connection-&amp;gt;getDatabasePlatform()&lt;del&gt;&amp;gt;getName() != &quot;mysql&quot;, &quot;Migration can only be executed safely on &apos;mysql&apos;.&quot;);&apos; on empty $this&lt;/del&gt;&amp;gt;getMigrateToSql&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-40] DBAL Enum fields migration issue / PostgreSQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-40</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When using Custom Doctrine DBAL Enums the migration created using diff&lt;/p&gt;

&lt;p&gt;works fine the first time.&lt;/p&gt;

&lt;p&gt;However the next time it generates a SQL statement trying to change to field type to INT from integer;  (Redundant)&lt;br/&gt;
and a truncated statement:&lt;/p&gt;

&lt;p&gt;&quot;ALTER schemaname.fieldname SET&quot; .. And that&apos;s it.&lt;/p&gt;
</description>
                <environment>PostgreSQL and migrations</environment>
            <key id="14805">DMIG-40</key>
            <summary>DBAL Enum fields migration issue / PostgreSQL</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="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 24 Apr 2013 10:53:03 +0000</created>
                <updated>Wed, 24 Apr 2013 11:36:09 +0000</updated>
                    <resolved>Wed, 24 Apr 2013 11:36:09 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20099" author="ocramius" created="Wed, 24 Apr 2013 11:36:09 +0000"  >&lt;p&gt;This is a DBAL issue. Please verify the issue using the DBAL schema tools (latest master) only and eventually open a DBAL issue.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-39] Issue when using serjal columns in PostgreSQL with Doctrine ORM Identity fields</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-39</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When using Doctrine ORM mapping fields 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;
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;IDENTITY&quot;&lt;/span&gt;)
     * @ORM\SequenceGenerator(sequenceName=&lt;span class=&quot;code-quote&quot;&gt;&quot;schemaname.tablename_id_seq&quot;&lt;/span&gt;, allocationSize=1, initialValue=1)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It first creates the migration perfectly as a serial column with the correct schema.&lt;/p&gt;

&lt;p&gt;However when making a new migration diff it generates DROP statements for every sequence for these id, so we have to remove them manually every time.&lt;/p&gt;
</description>
                <environment>PostgreSQL and migrations</environment>
            <key id="14804">DMIG-39</key>
            <summary>Issue when using serjal columns in PostgreSQL with Doctrine ORM Identity fields</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="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 24 Apr 2013 10:50:40 +0000</created>
                <updated>Wed, 24 Apr 2013 11:30:57 +0000</updated>
                    <resolved>Wed, 24 Apr 2013 11:30:57 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20098" author="ocramius" created="Wed, 24 Apr 2013 11:30:57 +0000"  >&lt;p&gt;This is a DBAL problem. &lt;/p&gt;

&lt;p&gt;Please verify this with the DBAL diff tools (latest master) only and eventually report a DBAL issue without involving migrations.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-37] PostgreSQL generated SQL statements in migrations that use doublequotes create syntax errors in PHP</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-37</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When using some reserved field names in PostgreSQL DBAL, the generated SQL statements will quote those field names. (Make a table with fieldname &quot;left&quot; for example)&lt;/p&gt;

&lt;p&gt;When the migrationversion is generated, the doublequote is not escaped:&lt;/p&gt;

&lt;p&gt;addSQL(&quot;ALTER table x add column &quot;left&quot; integer&quot;);&lt;/p&gt;

&lt;p&gt;This does not compile of course, should be&lt;/p&gt;

&lt;p&gt;addSQL(&quot;ALTER table x add column \&quot;left\&quot; integer&quot;);&lt;/p&gt;

&lt;p&gt;Regards!&lt;/p&gt;</description>
                <environment>PostgreSQL backend, using migration versions with field or schemanames that use reserved names.</environment>
            <key id="14741">DMIG-37</key>
            <summary>PostgreSQL generated SQL statements in migrations that use doublequotes create syntax errors in PHP</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="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>PostgreSQL</label>
                        <label>schematool</label>
                    </labels>
                <created>Thu, 28 Mar 2013 22:16:36 +0000</created>
                <updated>Thu, 28 Mar 2013 22:16:36 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-36] Iterating over versions is very slow</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-36</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When iterating migration versions, a call to SchemaManager::createSchema() is done for every versions.  Four our schema, this call take about 1 second to execute.  With already 30 migrations, this begin to be a problem.&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;
$versions = $configuration-&amp;gt;registerMigrationsFromDirectory($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_migration_folder);
foreach($versions as $version){
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(!$version-&amp;gt;isMigrated()){
        $version-&amp;gt;markMigrated();
    }

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;The problem is in Migrations\Configuration\Configuration::createMigrationTable() which does not set the migrationTableCreated flag when the table already exists.&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;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function createMigrationTable()
{
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;validate();

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;migrationTableCreated) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
        }

        $schema = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;connection-&amp;gt;getSchemaManager()-&amp;gt;createSchema();
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! $schema-&amp;gt;hasTable($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;migrationsTableName)) {
            $columns = array(
                &apos;version&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Column(&apos;version&apos;, Type::getType(&apos;string&apos;), array(&apos;length&apos; =&amp;gt; 14)),
            );
            $table = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Table($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;migrationsTableName, $columns);
            $table-&amp;gt;setPrimaryKey(array(&apos;version&apos;));
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;connection-&amp;gt;getSchemaManager()-&amp;gt;createTable($table);

            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;migrationTableCreated = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;

            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
        }
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14668">DMIG-36</key>
            <summary>Iterating over versions is very slow</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="rickdt">Eric Durand-Tremblay</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Mar 2013 15:52:51 +0000</created>
                <updated>Tue, 5 Mar 2013 15:53:36 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-35] Ignoring unique key</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-35</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I have a table design style, which has api_id field with unique key&lt;br/&gt;
CREATE TABLE `design_style` (&lt;br/&gt;
  `id` bigint(20) NOT NULL AUTO_INCREMENT,&lt;br/&gt;
  `api_id` varchar(5) COLLATE utf8_unicode_ci NOT NULL,&lt;br/&gt;
  .....&lt;br/&gt;
  PRIMARY KEY (`id`),&lt;br/&gt;
  UNIQUE KEY `api_id` (`api_id`),&lt;br/&gt;
  UNIQUE KEY `name` (`name`),&lt;br/&gt;
  KEY `category_id_idx` (`category_id`),&lt;br/&gt;
  CONSTRAINT `design_style_category_id_design_style_category_id` FOREIGN KEY (`category_id`) REFERENCES `design_style_category` (`id`)&lt;br/&gt;
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci&lt;/p&gt;

&lt;p&gt;I reverse engineered the database tables and created entities. I am using it in symfony2 app.&lt;/p&gt;

&lt;p&gt;Then I executed&lt;br/&gt;
&lt;b&gt;php app/console doctrine:schema:update --dump-sql&lt;/b&gt;&lt;br/&gt;
and also checked with migrations diff&lt;br/&gt;
&lt;b&gt;php app/console doctrine:migrations:diff&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;but has given me &lt;br/&gt;
&lt;b&gt;DROP INDEX api_id ON design_page&lt;/b&gt;&lt;/p&gt;
</description>
                <environment>PHP 5.4.6-2~lucid&lt;br/&gt;
5.1.63-0ubuntu0.10.04.1-log</environment>
            <key id="14021">DMIG-35</key>
            <summary>Ignoring unique key</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="tvgece">venu</reporter>
                        <labels>
                        <label>migrations</label>
                        <label>unique</label>
                    </labels>
                <created>Fri, 7 Sep 2012 15:46:15 +0000</created>
                <updated>Fri, 7 Sep 2012 15:46:15 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-34] Column names not escaped with backticks</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-34</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Generated from an Entity with a variable named access_key, with a column name of &quot;key&quot;.&lt;/p&gt;

&lt;p&gt;Generated MySQL table constructor fails, name is not escaped with backticks.&lt;/p&gt;</description>
                <environment>MySQL &amp;amp; Linux</environment>
            <key id="13452">DMIG-34</key>
            <summary>Column names not escaped with backticks</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="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="geusebio">Matthew Baggett</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Feb 2012 14:18:21 +0000</created>
                <updated>Wed, 15 Feb 2012 14:32:20 +0000</updated>
                    <resolved>Wed, 15 Feb 2012 14:32:20 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17426" author="beberlei" created="Wed, 15 Feb 2012 14:32:13 +0000"  >&lt;p&gt;This is not a bug, you have to explicitly force escpaing manually by giving @Column(name=&quot;``key`&quot;) in your mapping (or xml/yml equivalent).&lt;/p&gt;

&lt;p&gt;Automatic escaping leads to problems, that is why w edont support it.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-32] add annotation tag like author which defaults to current system username</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-32</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;would be nice if generated migrations could include @author tag with systems username&lt;br/&gt;
it would help when migrations are created by several users to find which migration belongs to who.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13417">DMIG-32</key>
            <summary>add annotation tag like author which defaults to current system username</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="gamesh">Justinas</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Feb 2012 09:35:10 +0000</created>
                <updated>Mon, 6 Feb 2012 09:35:10 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-31] $table-&gt;renameColumn() actually drops the column</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-31</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Tried to use renameColumn() into one of my migration scripts and it dropped the table.&lt;/p&gt;

&lt;p&gt;The code does not seem okay as well:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;namespace Doctrine\DBAL\Schema;
..
class Table extends AbstractAsset
{
..
  /**
    * Rename Column
    *
    * @param string $oldColumnName
    * @param string $newColumnName
    * @return Table
    */
public function renameColumn($oldColumnName, $newColumnName)
{
    $column = $this-&amp;gt;getColumn($oldColumnName);
    $this-&amp;gt;dropColumn($oldColumnName);

    $column-&amp;gt;_setName($newColumnName);
    return $this;
}
..
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>symfony 2.0.7</environment>
            <key id="13297">DMIG-31</key>
            <summary>$table-&gt;renameColumn() actually drops the column</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</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="nikola.petkanski">Nikola Petkanski</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Dec 2011 08:48:05 +0000</created>
                <updated>Tue, 19 Jun 2012 13:23:07 +0000</updated>
                    <resolved>Mon, 4 Jun 2012 07:26:47 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17373" author="veonik" created="Mon, 6 Feb 2012 22:32:01 +0000"  >&lt;p&gt;Doctrine\DBAL\Schema\Table is actually not a part of Doctrine Migrations, rather just the Database Abstraction Layer project. Recommend this gets sorted as such.&lt;/p&gt;</comment>
                    <comment id="18036" author="dbu" created="Mon, 4 Jun 2012 07:24:03 +0000"  >&lt;p&gt;this is a duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DMIG-22&quot; title=&quot;$table-&amp;gt;renameColumn doesn&amp;#39;t work&quot;&gt;&lt;del&gt;DMIG-22&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;any chances of getting the issue fixed?&lt;/p&gt;</comment>
                    <comment id="18037" author="beberlei" created="Mon, 4 Jun 2012 07:26:38 +0000"  >&lt;p&gt;From the internals this is really complicated. I will delete the method instead.&lt;/p&gt;</comment>
                    <comment id="18098" author="gomox" created="Tue, 19 Jun 2012 13:23:07 +0000"  >&lt;p&gt;Does this mean Doctrine Migrations won&apos;t support renaming columns? I&apos;m sorry but the alternative of not supporting it at all doesn&apos;t really work. It&apos;s a basic operation for DB schema changes, which are the whole point of migrations. What exactly is the proble? I have seen the algorithms for inferring that a column or table should be renamed and they are pretty simplistic. Maybe the solution is adding some sort of hinting to the renameX operations so that there is metadata inside the Table Schemas saying what the original columns or tables were. Thoughts?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-30] Make :migrations:diff smart and generate Schema object changes, not SQL directly</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-30</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Currently when using :migrations:diff the generated output will use addSql() exclusively. However there has to be a way to generate changes on the schema objects themselves by using the SchemaDiff objects and generating code from them.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13196">DMIG-30</key>
            <summary>Make :migrations:diff smart and generate Schema object changes, not SQL directly</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:34:01 +0000</created>
                <updated>Fri, 17 Feb 2012 06:19:43 +0000</updated>
                                                                            <due></due>
                    <votes>2</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="17367" author="veonik" created="Fri, 3 Feb 2012 22:52:55 +0000"  >&lt;p&gt;I think this would be something that would greatly increase the usefulness of migrations.&lt;/p&gt;

&lt;p&gt;After looking things over, I think doing something like this could work:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Instantiate an instance of Doctrine\ORM\Tools\Comparator, and retrieve a Doctrine\DBAL\Schema\SchemaDiff using $comparator-&amp;gt;compare($fromSchema, $toSchema);&lt;/li&gt;
	&lt;li&gt;Iterate over each of the SchemaDiff&apos;s properties to retrieve new tables, dropped tables, columns, indexes, etc to generate both up and down code&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It seems fairly simple, but I get kind of lost thinking about how it can be tested.&lt;/p&gt;

&lt;p&gt;Another option, which may in the end be easier but more dirty, is to create a &apos;PhpPlatform&apos; that only actually implements the getCreateTableSQL, getDropTableSQL, etc methods of Doctrine\DBAL\Platforms\AbstractPlatform.&lt;/p&gt;</comment>
                    <comment id="17430" author="veonik" created="Fri, 17 Feb 2012 06:15:05 +0000"  >&lt;p&gt;I&apos;ve gone and followed what I outlined in my last comment, but there is a small snag.&lt;/p&gt;

&lt;p&gt;Comparator and SchemaDiff check for schema changes that are not possible to make using public methods. An example is a dropped index. Both Comparator and SchemaDiff support dropping indexes, but there is no Table#dropIndex to actually make it happen. &lt;/p&gt;

&lt;p&gt;However, if you use Reflection to modify the underlying Table#$_indexes array, then the proper SQL will be generated by SchemaDiff. Terrible and dirty, I know. We should do something about it &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; Should I create a ticket?&lt;/p&gt;

&lt;p&gt;Anyway, I&apos;ve attached a patch (based on the current master, 9e81984) of what I&apos;ve come up with. I &lt;em&gt;think&lt;/em&gt; I&apos;ve covered everything. This will even generate code to drop indexes and foreign keys (using Reflection). I&apos;ve tried it on a schema of around 90 entities and it works beautifully. Of course, it&apos;s definitely not done or ready, but I wanted to see what was thought about what I&apos;ve done.&lt;/p&gt;

&lt;p&gt;Finally, what would be considered an acceptable test for this kind of thing? I suppose if I refactor all of the code generating bits into individual methods, I could pretty easily test for expected output. Am I on the right track?&lt;/p&gt;

&lt;p&gt;edit: by the way, use &lt;tt&gt;migrations:diff --no-platform&lt;/tt&gt; to generate the migration&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11161" name="DMIG-30.patch" size="24317" author="veonik" created="Fri, 17 Feb 2012 06:15:05 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-29] Add callback operation</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-29</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DMIG-27&quot; title=&quot;Add stack for operations&quot;&gt;DMIG-27&lt;/a&gt; is implemented, add a new operation &quot;callback&quot; that is executed at the position in the stack and can do arbitrary things (for example use the EntityManager to migrate data!)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13195">DMIG-29</key>
            <summary>Add callback operation</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:32:10 +0000</created>
                <updated>Wed, 16 Nov 2011 22:32:10 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-28] Interactive :migrate execution: Show all commands that would be executed when pressing [y]</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-28</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Currently schema console only asks if you really want to do the migration, however you dont know what will actually happen.&lt;/p&gt;

&lt;p&gt;all the operations should be posted before asking the question to do the migration.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13194">DMIG-28</key>
            <summary>Interactive :migrate execution: Show all commands that would be executed when pressing [y]</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:31:00 +0000</created>
                <updated>Wed, 16 Nov 2011 22:31:00 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-27] Add stack for operations</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-27</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Up and down operations should only put commands on a stack that is then executed after up() or down() have been processed.&lt;/p&gt;

&lt;p&gt;Currently there are two implicit stacks:&lt;/p&gt;

&lt;p&gt;1. addSql()&lt;br/&gt;
2. The changes done to the $schema instance.&lt;/p&gt;

&lt;p&gt;With &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DMIG-26&quot; title=&quot;Remove implicit schema diff to sql in Migration tasks for explicit solution&quot;&gt;DMIG-26&lt;/a&gt; $schema is an explicit change that adds to a stack.&lt;/p&gt;

&lt;p&gt;This should be unified to be one single stack called &quot;operations&quot; and they should be linearly processed.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13193">DMIG-27</key>
            <summary>Add stack for operations</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:29:29 +0000</created>
                <updated>Wed, 16 Nov 2011 22:31:23 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-26] Remove implicit schema diff to sql in Migration tasks for explicit solution</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-26</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Currently the following leads to an implicit drop table statement:&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;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function up(Schema $schema)
 {
    $schema-&amp;gt;dropTable(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However this should be an explicit operation that internally puts everything onto the &quot;addSQL&quot; stack, then resets the schema diffs to zero by cloning the current schema into the &quot;diff schema&quot; again.&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;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function up(Schema $schema)
 {
    $schema-&amp;gt;dropTable(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;);
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;syncSchema($schema);
    $schema-&amp;gt;dropTable(&lt;span class=&quot;code-quote&quot;&gt;&quot;bar&quot;&lt;/span&gt;);
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;syncSchema($schema);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13191">DMIG-26</key>
            <summary>Remove implicit schema diff to sql in Migration tasks for explicit solution</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Nov 2011 22:24:48 +0000</created>
                <updated>Mon, 21 Nov 2011 18:34:41 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16891" author="simensen" created="Sun, 20 Nov 2011 04:32:31 +0000"  >&lt;p&gt;So each call to &lt;tt&gt;syncSchema()&lt;/tt&gt; would result in processing all changes on the schema instance (&lt;tt&gt;dropTable()&lt;/tt&gt;, etc.) to actual SQL commands and placed on the &quot;operations&quot; stack? And at that point the schema instance should show no diffs so that any future calls to &lt;tt&gt;syncSchema()&lt;/tt&gt; would only include schema changes since the previous call?&lt;/p&gt;</comment>
                    <comment id="16892" author="beberlei" created="Sun, 20 Nov 2011 08:28:17 +0000"  >&lt;p&gt;Yes exactly&lt;/p&gt;</comment>
                    <comment id="16900" author="simensen" created="Mon, 21 Nov 2011 18:34:41 +0000"  >&lt;p&gt;Alright, I&apos;ll see what I can do. I have a feeling I will get a pretty good idea how everything works if I start digging into this one.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-25] migrating muliple databases</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-25</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I have 2 databases db1 and db2 in symfony2 + doctrine2 and both databases are different from each other in terms of tables and their fields. &lt;br/&gt;
I need to work on migration. Things work fine as long as there is one database. &lt;br/&gt;
But it does not works when there are more than one databases as it tries to migrate from all files &lt;span class=&quot;error&quot;&gt;&amp;#91;some of which are for db1, and some of them are for db2&amp;#93;&lt;/span&gt;&lt;br/&gt;
Also, is there any way where I can provide entity manager specific migration settings. Or is there any way through which I can provide connection or entity manager in the migration class.&lt;/p&gt;
</description>
                <environment>symfony2</environment>
            <key id="12863">DMIG-25</key>
            <summary>migrating muliple databases</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="saggi18dec">Ajinder Singh</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Jul 2011 06:32:21 +0000</created>
                <updated>Sat, 17 Mar 2012 10:46:44 +0000</updated>
                    <resolved>Sat, 17 Mar 2012 10:46:44 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17609" author="beberlei" created="Sat, 17 Mar 2012 10:46:44 +0000"  >&lt;p&gt;This is not supported, Migrations works for exactly one database, not more.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-24] False positives in Comparator on default values</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-24</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;At the moment I found only one way how to work with default values&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/**
 * @var string $isActive
 *
 * @Column(name=&quot;isActive&quot;, type=&quot;boolean&quot;, nullable=false)
 */
private $isActive;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;and then in the construct I use something like $this-&amp;gt;setIsActive(true);&lt;br/&gt;
on db level it looks like &quot;isActive BIT default 1&quot;&lt;br/&gt;
But the problem happened when I try to compare schemas for migrations. It always false positives on defaults.&lt;/p&gt;

&lt;p&gt;How to set defaults for prevent false positives in Comparator?&lt;/p&gt;
</description>
                <environment></environment>
            <key id="12828">DMIG-24</key>
            <summary>False positives in Comparator on default values</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="yaroslav">Yaroslav Zenin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Jul 2011 14:55:19 +0000</created>
                <updated>Thu, 23 May 2013 08:06:56 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20423" author="and" created="Thu, 23 May 2013 07:20:53 +0000"  >&lt;p&gt;private $isActive = 1?&lt;/p&gt;</comment>
                    <comment id="20426" author="ocramius" created="Thu, 23 May 2013 07:35:01 +0000"  >&lt;p&gt;What are the affected versions for this bug? I think it is a DBAL schema comparator issue.&lt;/p&gt;</comment>
                    <comment id="20428" author="and" created="Thu, 23 May 2013 08:06:56 +0000"  >&lt;p&gt;And yes - related issue: &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2467&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2467&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-23] Doctrine migrations MySQL only?</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-23</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;Today I have started with implemention migrations in my project.&lt;br/&gt;
But I found that only MySQL supported.&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/**
 * Returns the current migrated version from the versions table.
 *
 * @return bool $currentVersion
 */
  public function getCurrentVersion()
  {
      $this-&amp;gt;createMigrationTable();

      $result = $this-&amp;gt;connection-&amp;gt;fetchColumn(&quot;SELECT version FROM &quot; . $this-&amp;gt;migrationsTableName . &quot; ORDER BY version DESC LIMIT 1&quot;);
      return $result !== false ? (string) $result : &apos;0&apos;;
  }&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In my project I use MSSQL db.&lt;br/&gt;
Do you plan to use platform independent solution?&lt;/p&gt;</description>
                <environment></environment>
            <key id="12825">DMIG-23</key>
            <summary>Doctrine migrations MySQL only?</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="yaroslav">Yaroslav Zenin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Jul 2011 10:39:54 +0000</created>
                <updated>Thu, 17 Nov 2011 09:55:48 +0000</updated>
                    <resolved>Thu, 17 Nov 2011 09:55:48 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16846" author="kimhemsoe" created="Wed, 16 Nov 2011 22:37:23 +0000"  >&lt;p&gt;Seem this is already been fixed:&lt;/p&gt;

&lt;p&gt;        $sql = &quot;SELECT version FROM &quot; . $this-&amp;gt;migrationsTableName . &quot; ORDER BY version DESC&quot;;&lt;br/&gt;
        $sql = $this-&amp;gt;connection-&amp;gt;getDatabasePlatform()-&amp;gt;modifyLimitQuery($sql, 1);&lt;br/&gt;
        $result = $this-&amp;gt;connection-&amp;gt;fetchColumn($sql);&lt;br/&gt;
        return $result !== false ? (string) $result : &apos;0&apos;;&lt;/p&gt;


&lt;p&gt;You can skip my PR-52, if you want since. My plan was to fix it with the query builder&lt;/p&gt;</comment>
                    <comment id="16853" author="beberlei" created="Thu, 17 Nov 2011 09:55:48 +0000"  >&lt;p&gt;Was already fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-22] $table-&gt;renameColumn doesn&apos;t work</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-22</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;In my case $table-&amp;gt;renameColumn(&apos;old&apos;, &apos;new&apos;) resulted only in a &quot;drop column &apos;old&apos;&quot;.&lt;/p&gt;</description>
                <environment>php 5.3, current git master</environment>
            <key id="12732">DMIG-22</key>
            <summary>$table-&gt;renameColumn doesn&apos;t work</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="stefanklug">Stefan Klug</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Jun 2011 14:37:02 +0000</created>
                <updated>Sat, 30 Jun 2012 07:01:30 +0000</updated>
                    <resolved>Sat, 30 Jun 2012 07:01:30 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18151" author="beberlei" created="Sat, 30 Jun 2012 07:01:29 +0000"  >&lt;p&gt;We removed the function because of that, see reason here &lt;a href=&quot;https://github.com/doctrine/dbal/commit/9b0bd8817cb74c4aefba043c7e59f94641cc5b15&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/9b0bd8817cb74c4aefba043c7e59f94641cc5b15&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-21] Call to undefined method Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand::getApplication()</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-21</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I get the following error when trying to run doctrine migrations:status in a newly configured setup:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;PHP Fatal error:  Call to undefined method Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand::getApplication() in /library/vendor/migrations/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/AbstractCommand.php on line 82
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Changing line 82 of AbstractCommand.php to the following gets it working, but I am unsure of the implications: &lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;if ($this-&amp;gt;getHelper(&apos;db&apos;)) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Doctrine 2.0.3, PHP 5.3.5</environment>
            <key id="12510">DMIG-21</key>
            <summary>Call to undefined method Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand::getApplication()</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="lfeistel">Lee Feistel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Mar 2011 14:41:20 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:33 +0000</updated>
                                                                            <due></due>
                    <votes>2</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="15639" author="artefact2" created="Wed, 30 Mar 2011 10:41:19 +0000"  >&lt;p&gt;I have this issue too with the &quot;packaged&quot; Doctrine 2.0.3 availible at &lt;a href=&quot;http://www.doctrine-project.org/downloads/DoctrineORM-2.0.3-full.tar.gz&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/downloads/DoctrineORM-2.0.3-full.tar.gz&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Weirdly enough, the method is availible in the latest master, cf. &lt;a href=&quot;https://github.com/symfony/Console/blob/master/Command/Command.php#L88&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/Console/blob/master/Command/Command.php#L88&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15679" author="wilmoore" created="Mon, 4 Apr 2011 19:20:26 +0000"  >&lt;p&gt;I also confirm this behavior. I&apos;ve also verified that this issue can be resolved by grabbing the latest (HEAD) from the Symfony repo.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-20] migrations try to create an index with name &quot;primary&quot; for ManyToMany associations</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-20</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;For ManyToMany associations, migrations try to create a unique index on (joinColumn, inverseJoinColumn) having name &quot;primary&quot;:&lt;/p&gt;

&lt;p&gt;CREATE UNIQUE INDEX primary ON join_table (joinColumn, inverseJoinColumn);&lt;/p&gt;

&lt;p&gt;Which results in a syntax error on MySQL (primary is also an invalid key name).&lt;/p&gt;</description>
                <environment></environment>
            <key id="12455">DMIG-20</key>
            <summary>migrations try to create an index with name &quot;primary&quot; for ManyToMany associations</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="arnaud-lb">arnaud-lb</reporter>
                        <labels>
                    </labels>
                <created>Sun, 6 Mar 2011 10:17:13 +0000</created>
                <updated>Sun, 26 Jun 2011 11:57:28 +0000</updated>
                    <resolved>Sun, 26 Jun 2011 11:57:28 +0000</resolved>
                                                                    <due></due>
                    <votes>1</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="16063" author="k-fish" created="Sat, 25 Jun 2011 09:43:16 +0000"  >&lt;p&gt;Caused by / related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-126&quot; title=&quot;schema-tool creates primary keys as unique constraints&quot;&gt;&lt;del&gt;DBAL-126&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16072" author="arnaud-lb" created="Sun, 26 Jun 2011 11:57:28 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-126&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-126&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-19] migrations diff with columnDefinition</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-19</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When an attribute has a @Column(columnDefinition=...) parameter, migrations:diff always causes false positives.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12454">DMIG-19</key>
            <summary>migrations diff with columnDefinition</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="arnaud-lb">arnaud-lb</reporter>
                        <labels>
                    </labels>
                <created>Sun, 6 Mar 2011 10:14:49 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:33 +0000</updated>
                                                                            <due></due>
                    <votes>3</votes>
                        <watches>3</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-18] diffing causes lots of false positives (on postgresql)</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-18</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I am playing around with the diff tool and noticing that a lot of false positives are generated, like using SERIAL creates Sequences that are not explicitly listed, causing the diff tool to believe that they should be dropped. Or using &quot;array&quot; as a datatype makes the diff tool believe that there was a type change since they are setup as TEXT. now the alter statement then actually specifies to alter it form TEXT to TEXT again.&lt;/p&gt;

&lt;p&gt;I guess the fact is that just more work needs to be put in here and I guess if I want things to improve I should step up, especially if I care about such an &quot;obsure&quot; database as Postresql &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</description>
                <environment>PostgreSQL 9.0</environment>
            <key id="12406">DMIG-18</key>
            <summary>diffing causes lots of false positives (on postgresql)</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="lsmith">Lukas Kahwe</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Feb 2011 15:33:48 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:34 +0000</updated>
                                                                            <due></due>
                    <votes>2</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="15857" author="ilanco" created="Sat, 14 May 2011 23:26:04 +0000"  >&lt;p&gt;I have noticed the same problems when using @GeneratedValue(strategy=&quot;IDENTITY&quot;).&lt;br/&gt;
Postgres will create a sequence which doctrine does not manage. When running a schema validation doctrine fails because the diff tool&lt;br/&gt;
believes the sequences should not be in the database. &lt;br/&gt;
Same problem when trying to update the schema with --complete, doctrine will run queries to drop the sequences.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Ilan&lt;/p&gt;</comment>
                    <comment id="16118" author="lsmith" created="Tue, 5 Jul 2011 12:38:01 +0000"  >&lt;p&gt;likely solved with &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-42&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-42&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16460" author="kiang" created="Sat, 10 Sep 2011 07:52:42 +0000"  >&lt;p&gt;Currently, sequences won&apos;t be dropped when using diff tool (latest version from github downloaded today). But it still drops the default value like &apos;nextval(&apos;xxx_seq&apos;)&apos;. As the database wasn&apos;t used by doctrine2 only, dropping default value like that caused some problems in my environment.&lt;/p&gt;</comment>
                    <comment id="16461" author="kiang" created="Sat, 10 Sep 2011 08:24:14 +0000"  >&lt;p&gt;well... the diff is not reliable currently as all the indexes, constraints were affected and serial, bigserial fields would be replaced using int and bigint...&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<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>

<item>
            <title>[DMIG-16] incorrect class name</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-16</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/projects/migrations/2.0/docs/reference/introduction/en#introduction&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/migrations/2.0/docs/reference/introduction/en#introduction&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;$helperSet = new \Symfony\Components\Console\Helper\HelperSet(array(&lt;br/&gt;
    &apos;db&apos; =&amp;gt; new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($db),&lt;br/&gt;
    &apos;dialog&apos; =&amp;gt; new \Symfony\Components\Console\Helper\DialogHelper(),&lt;br/&gt;
));&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;bug in &quot;\Symfony\Component_s_\Console\Helper\DialogHelper&quot; =&amp;gt; &quot;\Symfony\Component\Console\Helper\DialogHelper()&quot;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12304">DMIG-16</key>
            <summary>incorrect class name</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="stfalcon">Stepan Tanasiychuk</reporter>
                        <labels>
                    </labels>
                <created>Sat, 15 Jan 2011 15:33:29 +0000</created>
                <updated>Tue, 15 Feb 2011 15:42:42 +0000</updated>
                    <resolved>Tue, 15 Feb 2011 15:42:42 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15314" author="beberlei" created="Tue, 15 Feb 2011 15:42:42 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-15] Drop not null is not working in Postgres</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-15</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When removing the not null from a column the migration does not change anything in the database. This is due to the following check on line 162 of lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Export/Pgsql.php&lt;/p&gt;

&lt;p&gt;if ( ! empty($field&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;definition&amp;#39;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;notnull&amp;#39;&amp;#93;&lt;/span&gt;))&lt;/p&gt;

&lt;p&gt;So if notnull is not there or set to false or &apos;0&apos; or 0 the code does not enter into that if statement and therefore no changes are done to the not null value of the column.&lt;/p&gt;</description>
                <environment>Postgresql 8.4, Symfony 1.4, Doctrine 1.2</environment>
            <key id="12109">DMIG-15</key>
            <summary>Drop not null is not working in Postgres</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="2">Won&apos;t Fix</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="lea">Lea Haensenberger</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Nov 2010 07:45:55 +0000</created>
                <updated>Tue, 16 Nov 2010 07:58:13 +0000</updated>
                    <resolved>Tue, 16 Nov 2010 07:58:13 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14753" author="lea" created="Tue, 16 Nov 2010 07:58:13 +0000"  >&lt;p&gt;I recreated the bug report in the doctrine 1 project since it rather belongs there.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-12] createIndexSql and dropIndexSql don&apos;t use the same logic to get the index name</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-12</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;In the class Doctrine_Export the functions for creating and dropping indexes do not use the same logic to get the name of the index to be created or dropped.&lt;/p&gt;

&lt;p&gt;When creating an index $this-&amp;gt;conn-&amp;gt;quoteIdentifier() is called on the index name. &lt;br/&gt;
When dropping an index $this-&amp;gt;conn-&amp;gt;quoteIdentifier($this-&amp;gt;conn-&amp;gt;formatter-&amp;gt;getIndexName()) is called on the name, which by default adds &apos;_idx&apos; to the index name. Hence, when an index should be dropped in a migration an index with that name is not found because it was created without the &apos;_idx&apos;.&lt;/p&gt;

&lt;p&gt;We use the migrations with a Postgres 8.4 database.&lt;/p&gt;</description>
                <environment>Postgres 8.4</environment>
            <key id="12039">DMIG-12</key>
            <summary>createIndexSql and dropIndexSql don&apos;t use the same logic to get the index name</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="2">Won&apos;t Fix</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="lea">Lea Haensenberger</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Oct 2010 08:13:09 +0000</created>
                <updated>Tue, 16 Nov 2010 07:57:59 +0000</updated>
                    <resolved>Tue, 16 Nov 2010 07:57:59 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14752" author="lea" created="Tue, 16 Nov 2010 07:57:59 +0000"  >&lt;p&gt;I recreated the bug report in the doctrine 1 project since it rather belongs there.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-11] Comparer always detects changes when using columnDefinition in mapping definitions</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-11</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;The migration diff command always thinks that my model definitions have changed, when I use the manual columnDefinition on a timestamp column:&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;    dateUpdated:
      type: datetime
      columnDefinition: TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This always results in a migration script 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;&amp;lt;?php

namespace SuplifyApiMigrations;

use Doctrine\DBAL\Migrations\AbstractMigration,
    Doctrine\DBAL\Schema\Schema;

class Version20101028121948 &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; AbstractMigration
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function up(Schema $schema)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_addSql(&apos;ALTER TABLE ticket CHANGE dateUpdated dateUpdated TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL&apos;);
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function down(Schema $schema)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_addSql(&apos;ALTER TABLE ticket CHANGE dateUpdated dateUpdated DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL&apos;);
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As you can see, the columns look exactly the same. Doctrine just does not seem to parse the manual columnDefinition and compare its result.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12038">DMIG-11</key>
            <summary>Comparer always detects changes when using columnDefinition in mapping definitions</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="sebastian.hoitz">Sebastian Hoitz</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Oct 2010 06:21:22 +0000</created>
                <updated>Tue, 15 Feb 2011 15:34:53 +0000</updated>
                    <resolved>Tue, 15 Feb 2011 15:34:53 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15311" author="beberlei" created="Tue, 15 Feb 2011 15:34:53 +0000"  >&lt;p&gt;Its not possible to fix this issue, its actually a drawback of using &quot;columnDefinition&quot;, i started documenting this in the ORM docs.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-10] Syntax error in migration script</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-10</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;The migration script created a php line like this:&lt;/p&gt;

&lt;p&gt;$this-&amp;gt;_addSql(&apos;ALTER TABLE ... DEFAULT &apos;0&apos;&apos;);&lt;/p&gt;

&lt;p&gt;Which creates a syntax error in the php file.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12036">DMIG-10</key>
            <summary>Syntax error in migration script</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="sebastian.hoitz">Sebastian Hoitz</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Oct 2010 14:47:14 +0000</created>
                <updated>Wed, 8 Dec 2010 02:37:33 +0000</updated>
                    <resolved>Wed, 8 Dec 2010 02:37:33 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14932" author="jwage" created="Wed, 8 Dec 2010 02:37:28 +0000"  >&lt;p&gt;This should take care of it&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/migrations/commit/44941f083eea1d321b7d7991a030ee303e9f9037&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/commit/44941f083eea1d321b7d7991a030ee303e9f9037&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-9] table &quot;contact_attribute&quot; already exists - with mappedSuperClass</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-9</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I have a class App_Model_Contact_Attribute:&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;App_Model_Contact_Attribute:
  type: mappedSuperclass
  inheritanceType: SINGLE_TABLE
  table: contact_attribute
  discriminatorColumn:
    name: type
    type: string
    length: 20
    columnDefinition: &lt;span class=&quot;code-quote&quot;&gt;&quot;varchar(20) not &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;&quot;&lt;/span&gt;
  discriminatorMap:
      emailAddress: App_Model_Contact_EmailAddress
      twitterAccount: App_Model_Contact_TwitterAccount
  id:
    id:
      type: integer
      columnDefinition: &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; unsigned not &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; auto_increment&quot;&lt;/span&gt;
      generator:
        strategy: AUTO
  fields:
    value:
      type: string
      notnull: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      columnDefinition: &lt;span class=&quot;code-quote&quot;&gt;&quot;varchar(45)&quot;&lt;/span&gt;
  manyToOne:
    contact:
      joinColumn:
        name: contactID
        referencedColumnName: id
        columnDefinition: &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; not &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; unsigned&quot;&lt;/span&gt;
      targetEntity: App_Model_Contact
      fetch: EAGER
      cascade: [persist]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and a class App_Model_Contact_EmailAddress and App_Model_Contact_TwitterAccount. Both yml files look similar to 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;App_Model_Contact_TwitterAccount:
  type: entity
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, when I want to execute migrations:diff it always fails giving me the message: &quot;Table contact_attribute already exists&quot;.&lt;/p&gt;

&lt;p&gt;This probably has to do with the mappedSuperClass declaration in my models.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12032">DMIG-9</key>
            <summary>table &quot;contact_attribute&quot; already exists - with mappedSuperClass</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="5">Cannot Reproduce</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="sebastian.hoitz">Sebastian Hoitz</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Oct 2010 13:19:35 +0000</created>
                <updated>Fri, 26 Nov 2010 04:57:05 +0000</updated>
                    <resolved>Fri, 26 Nov 2010 04:57:05 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14840" author="sebastian.hoitz" created="Fri, 26 Nov 2010 04:57:05 +0000"  >&lt;p&gt;This bug does not seem to occur anymore.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-8] MySQL + Doctrine 2 + Column of type decimal with no precision or scale manually set results in infinite migration diffs generated</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-8</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;To reproduce:&lt;/p&gt;

&lt;p&gt;Create a new entity with a column type decimal @Column(type=&quot;decimal&quot;)&lt;/p&gt;

&lt;p&gt;Run the CLI tool &quot;migrations:diff&quot;&lt;/p&gt;

&lt;p&gt;Run the CLI tool &quot;migrations:migrate&quot;&lt;/p&gt;

&lt;p&gt;If you run &quot;migrations:diff&quot; again a new migration will be created with an ALTER TABLE that only affects the columns of type Decimal. You can apply these new migrations and generate more using Diff ad nauseum.&lt;/p&gt;


&lt;p&gt;My assumption is there is a mismatch between the Migrations Diff and annotation&apos;s defaults, causing it to continually identify decimal columns as requiring a migration.&lt;/p&gt;


&lt;p&gt;To avoid this issue manually set a precision and scale, everything will then work as expected.&lt;/p&gt;</description>
                <environment>Debian 5.0, PHP 5.3.3, MySQL 5.1.50, Doctrine 2.0.0BETA4, Annotations</environment>
            <key id="11988">DMIG-8</key>
            <summary>MySQL + Doctrine 2 + Column of type decimal with no precision or scale manually set results in infinite migration diffs generated</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="dcousineau">Daniel Cousineau</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Oct 2010 18:39:05 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:33 +0000</updated>
                                                                            <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-7] migrations:diff could not be found</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-7</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;./doctrine list migrations didn&apos;t list diff although the diff command is added in doctrine.php.&lt;/p&gt;

&lt;p&gt;This could be the problem of configure() in DiffCommand.php. The parent::configure() is called after the the configuration of diff command. So the name etc of the diff command is overwritten by the father class, namely &quot;generate&quot;.&lt;/p&gt;
</description>
                <environment>linux, &lt;a href=&quot;http://svn.github.com/doctrine/migrations.git,&quot;&gt;http://svn.github.com/doctrine/migrations.git,&lt;/a&gt; revision 40</environment>
            <key id="11791">DMIG-7</key>
            <summary>migrations:diff could not be found</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="tiw">Ting Wang</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Aug 2010 04:50:03 +0000</created>
                <updated>Tue, 15 Feb 2011 15:40:14 +0000</updated>
                    <resolved>Tue, 15 Feb 2011 15:40:14 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15313" author="beberlei" created="Tue, 15 Feb 2011 15:40:13 +0000"  >&lt;p&gt;Fixed already&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10744" name="configDiff.patch" size="845" author="tiw" created="Wed, 18 Aug 2010 04:50:03 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-6] Put Migrations under own namespace to avoid problems with Autoloader</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-6</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;I think it would be a good idea to put the Migrations classes under their own namespace. If you use \Doctrine\Common\ClassLoader for loading both, DBAL and Migrations, you need to load Migrations before DBAL to avoid raising an exception.&lt;/p&gt;

&lt;p&gt;Throws exception:&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;$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine\DBAL&apos;, realpath(APPLICATION_PATH . &apos;/../library/Doctrine/DBAL/lib&apos;));
$classLoader-&amp;gt;register();
$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine\DBAL\Migrations&apos;, realpath(APPLICATION_PATH . &apos;/../library/Doctrine/Migrations/lib&apos;));
$classLoader-&amp;gt;register();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Works:&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;$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine\DBAL\Migrations&apos;, realpath(APPLICATION_PATH . &apos;/../library/Doctrine/Migrations/lib&apos;));
$classLoader-&amp;gt;register();
$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine\DBAL&apos;, realpath(APPLICATION_PATH . &apos;/../library/Doctrine/DBAL/lib&apos;));
$classLoader-&amp;gt;register();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="11573">DMIG-6</key>
            <summary>Put Migrations under own namespace to avoid problems with Autoloader</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="mstoehr">Marcus St&#246;hr</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Jun 2010 08:19:16 +0000</created>
                <updated>Wed, 16 Nov 2011 22:09:34 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13473" author="jwage" created="Wed, 30 Jun 2010 18:08:25 +0000"  >&lt;p&gt;I am not sure we should do this. The migrations are an extension of the DBAL so it makes sense to be under that namespace. I thin it is normal to have to register the autoloaders in the right order, no?&lt;/p&gt;</comment>
                    <comment id="13478" author="mstoehr" created="Thu, 1 Jul 2010 04:15:47 +0000"  >&lt;p&gt;Yes, with the migrations being an extension of the DBAL I agree with you. As of today I wasn&apos;t aware of the fact that the autoloader using a stack (I should have checked that prior). However, it would be nice to have either some documentation about it or extend the ClassLoader to handle this implicit.&lt;/p&gt;</comment>
                    <comment id="13481" author="jwage" created="Thu, 1 Jul 2010 12:47:55 +0000"  >&lt;p&gt;I will add some documentation about using multiple class loaders and order.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-5] migrations:generate incorrect version</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-5</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;in Doctrine/DBAL/Migrations/Tools/Console/Command/GenerateCommand.php&lt;/p&gt;

&lt;p&gt;$version = date(&apos;YmdHms&apos;);&lt;/p&gt;

&lt;p&gt;must be&lt;/p&gt;

&lt;p&gt;$version = date(&apos;YmdHis&apos;);&lt;/p&gt;</description>
                <environment>Linux Ubuntu</environment>
            <key id="11534">DMIG-5</key>
            <summary>migrations:generate incorrect version</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="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tvlooy">Tom Van Looy</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Jun 2010 10:55:48 +0000</created>
                <updated>Tue, 15 Feb 2011 15:37:39 +0000</updated>
                    <resolved>Tue, 15 Feb 2011 15:37:39 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15312" author="beberlei" created="Tue, 15 Feb 2011 15:37:39 +0000"  >&lt;p&gt;Fixed already.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-4] Case sensitive include</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-4</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;in:&lt;br/&gt;
&lt;a href=&quot;http://github.com/doctrine/migrations/blob/master/lib/Doctrine/DBAL/Migrations/Configuration/Configuration.php&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/migrations/blob/master/lib/Doctrine/DBAL/Migrations/Configuration/Configuration.php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;use Doctrine\Dbal\Connection,&lt;br/&gt;
    Doctrine\DBAL\Migrations\MigrationException,&lt;br/&gt;
    Doctrine\DBAL\Migrations\Version,&lt;br/&gt;
    Doctrine\DBAL\Migrations\OutputWriter,&lt;br/&gt;
    Doctrine\Dbal\Schema\Table,&lt;br/&gt;
    Doctrine\Dbal\Schema\Column,&lt;br/&gt;
    Doctrine\DBAL\Types\Type;&lt;/p&gt;

&lt;p&gt;This can&apos;t be upper/lowercase. DBAL must be in uppercase every time.&lt;/p&gt;</description>
                <environment>Linux Ubuntu </environment>
            <key id="11520">DMIG-4</key>
            <summary>Case sensitive include</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="tvlooy">Tom Van Looy</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Jun 2010 04:07:19 +0000</created>
                <updated>Fri, 18 Jun 2010 12:00:28 +0000</updated>
                    <resolved>Fri, 18 Jun 2010 12:00:28 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13364" author="jwage" created="Fri, 18 Jun 2010 12:00:28 +0000"  >&lt;p&gt;Fixed issue with case in use statement &lt;a href=&quot;http://github.com/doctrine/migrations/commit/eda8b0b0ee9f9bddb7b73ee956d2106e26b80794&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/migrations/commit/eda8b0b0ee9f9bddb7b73ee956d2106e26b80794&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-3] AbstractCommand depends on ORM Package</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-3</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;The Abstractcommand uses the Entity Manager instead of accessing the DBAL Connection directly through the helperset. This makes it impossible to use migrations without the ORM.&lt;/p&gt;

&lt;p&gt;The ORM however is only of any interest in the DiffCommand, the other commands don&apos;t need access to any EM related functionality.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11503">DMIG-3</key>
            <summary>AbstractCommand depends on ORM Package</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Jun 2010 07:49:49 +0000</created>
                <updated>Wed, 16 Jun 2010 08:01:41 +0000</updated>
                    <resolved>Wed, 16 Jun 2010 08:01:41 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DMIG-2] Creating columns of typ SET fails to set default value</title>
                <link>http://www.doctrine-project.org/jira/browse/DMIG-2</link>
                <project id="10041" key="DMIG">Doctrine Migrations</project>
                        <description>&lt;p&gt;When writing a migration class for a table I wanted to add a new column of the SET type. I&apos;ve set the notnull option and a default value, but Doctrine fails to generate the correct SQL.&lt;/p&gt;

&lt;p&gt;Migration function:&lt;br/&gt;
	public function up()&lt;/p&gt;
	{
		$options = array(
			&apos;type&apos; =&amp;gt; &apos;set&apos;,
			&apos;notnull&apos; =&amp;gt; 1,
			&apos;size&apos; =&amp;gt; 10,
			&apos;values&apos; =&amp;gt; array(
				&apos;value_a&apos;,
				&apos;value_b&apos;,
				&apos;value_c&apos;,
			),
			&apos;default&apos; =&amp;gt; &apos;value_a
		);
		$this-&amp;gt;addColumn(&apos;my_table&apos;, &apos;new_field&apos;, &apos;set&apos;, Null, $options);
	}

&lt;p&gt;MySQL error (contains the generated SQL):&lt;br/&gt;
 Error #1 - SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &apos;NOT NULL&apos; at line 1. Failing Query: &quot;ALTER TABLE my_table ADD new_field SET(&apos;value_a&apos;, &apos;value_b&apos;, &apos;value_c&apos;) DEFAULT  NOT NULL&quot;&lt;/p&gt;

&lt;p&gt;After a bit of debugging I&apos;ve found the problem, Doctrine_Formatter::quote() doesn&apos;t know how to handle set. Simply adding &apos;set&apos; to the switch right below &apos;enum&apos; will make it work as it should.&lt;/p&gt;

&lt;p&gt;&amp;#8212; lib/Doctrine/Formatter.php&lt;br/&gt;
+++ lib/Doctrine/Formatter.php&lt;br/&gt;
@@ -186,6 +186,7 @@ class Doctrine_Formatter extends Doctrine_Connection_Module&lt;br/&gt;
         case &apos;blob&apos;:&lt;br/&gt;
         case &apos;clob&apos;:&lt;br/&gt;
         case &apos;enum&apos;:&lt;br/&gt;
+        case &apos;set&apos;:&lt;br/&gt;
         case &apos;boolean&apos;:&lt;br/&gt;
         return &quot;&apos;&quot; . str_replace(&quot;&apos;&quot;,&quot;&apos;&apos;&quot;,$input) . &quot;&apos;&quot;;&lt;br/&gt;
         }&lt;/p&gt;</description>
                <environment>Doctrine 1.2.2&lt;br/&gt;
MySQL 5.0.45&lt;br/&gt;
PHP 5.2.5</environment>
            <key id="11458">DMIG-2</key>
            <summary>Creating columns of typ SET fails to set 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>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="fredrik_w">Fredrik</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Jun 2010 07:24:19 +0000</created>
                <updated>Tue, 8 Jun 2010 13:32:04 +0000</updated>
                    <resolved>Tue, 8 Jun 2010 08:32:01 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13135" author="fredrik_w" created="Tue, 8 Jun 2010 07:26:24 +0000"  >&lt;p&gt;I hope I put this into the right project, wasn&apos;t sure if this belonged in &quot;Doctrine 1&quot; but this project is called &quot;Doctrine Migrations&quot; so here it went.&lt;/p&gt;</comment>
                    <comment id="13136" author="jwage" created="Tue, 8 Jun 2010 08:32:36 +0000"  >&lt;p&gt;This is actually for the Doctrine 2 Migrations project. The Doctrine 1 migrations were a part of the actual Doctrine 1 library. Everything was all coupled together in Doctrine 1. We only split things up for Doctrine 2.&lt;/p&gt;</comment>
                    <comment id="13172" author="fredrik_w" created="Tue, 8 Jun 2010 12:39:27 +0000"  >&lt;p&gt;Oh, I&apos;m sorry. Should I create a new issue under Doctrine 1 to have it fixed there?&lt;/p&gt;</comment>
                    <comment id="13174" author="jwage" created="Tue, 8 Jun 2010 13:32:04 +0000"  >&lt;p&gt;No, I already fixed the issue. Just for future reference &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>