<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 13:20:52 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+10040+AND+labels+%3D+schematool&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+10040+AND+labels+%3D+schematool</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="7" total="7"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-483] default values make orm:validate-schema fail</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-483</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&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;% ./bin/doctrine.php --env=development orm:schema-tool:update --dump-sql                                                                                                  
ALTER TABLE groups CHANGE active active TINYINT(1) DEFAULT &apos;1&apos; NOT NULL;
ALTER TABLE module ADD root_order INT DEFAULT 0 NOT NULL
% ./bin/doctrine.php --env=development orm:schema-tool:update --force
Updating database schema...
Database schema updated successfully! &quot;2&quot; queries were executed
% ./bin/doctrine.php --env=development orm:schema-tool:update --dump-sql                                                                                                  ALTER TABLE groups CHANGE active active TINYINT(1) DEFAULT &apos;1&apos; NOT NULL;
ALTER TABLE module CHANGE root_order root_order INT DEFAULT 0 NOT NULL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;My entities define these columns like this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Group&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    /**
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;active&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;&lt;/span&gt;, options={&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;})
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $active = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Module&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    /**
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;root_order&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, options={&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;:0})
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $rootOrder = 0;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>MySQL, PHP 5.3, Doctrine 2.3</environment>
            <key id="14757">DBAL-483</key>
            <summary>default values make orm:validate-schema fail</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="till">Till</reporter>
                        <labels>
                        <label>schematool</label>
                    </labels>
                <created>Thu, 4 Apr 2013 10:52:22 +0000</created>
                <updated>Wed, 1 May 2013 08:45:46 +0000</updated>
                    <resolved>Wed, 1 May 2013 08:45:46 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20130" author="kaserf" created="Tue, 30 Apr 2013 17:09:39 +0000"  >&lt;p&gt;We are having the same issue. Is there any workaround for this?&lt;/p&gt;</comment>
                    <comment id="20131" author="kaserf" created="Tue, 30 Apr 2013 20:34:16 +0000"  >&lt;p&gt;I&apos;ve investigated a bit and noticed several things:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;looks like doctrine does not (officially?) support setting of default options in the annotation. It is recommended to use the instance default ($rootOrder = 0).&lt;/li&gt;
	&lt;li&gt;in the comparator class the Column-&amp;gt;getDefault() is compared, but I found out that in one table (I guess the one from mysql) the default is set directly, in the other one (I guess the doctrine one generated from the annotations) the default is empty but the customSchemaOptions&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;default&amp;quot;&amp;#93;&lt;/span&gt; is set.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So based on this I would say:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the $column-&amp;gt;getDefault needs to be checked against the other $column-&amp;gt;getCustomSchemaOption(&quot;default&quot;) and vice versa&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Please correct me if I&apos;m wrong&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-482] SQL Server Schema Manager returns incorrect value for autoincrement on IDENTITY columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-482</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When calculating table diffs, SQLServerSchemaManager returns column definitions for identity columns with _autoincrement set to FALSE. &lt;/p&gt;

&lt;p&gt;This causes the schema update SQL generation to pump out a &lt;br/&gt;
ALTER TABLE x ALTER COLUMN id INT IDENTITY NOT NULL&lt;br/&gt;
for every single identity column in the schema.&lt;/p&gt;

&lt;p&gt;The culprit is in DBAL\Schema\SQLServerSchemaManager, starting at line 43:&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;        $dbType = strtolower($tableColumn[&apos;TYPE_NAME&apos;]);
        $dbType = strtok($dbType, &apos;(), &apos;);

        $autoincrement = false;
        if (stripos($dbType, &apos;identity&apos;)) {
            $dbType = trim(str_ireplace(&apos;identity&apos;, &apos;&apos;, $dbType));
            $autoincrement = true;
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When the column in question is an identity int column, the TYPE_NAME is &quot;int identity&quot;. The second line of the snippet drops the &quot;identity&quot; signifier, causing the following lines that determine autoincrement to do nothing.&lt;/p&gt;

&lt;p&gt;I simply moved the second line to below the autoincrement block ie:&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;        $dbType = strtolower($tableColumn[&apos;TYPE_NAME&apos;]);

        $autoincrement = false;
        if (stripos($dbType, &apos;identity&apos;)) {
            $dbType = trim(str_ireplace(&apos;identity&apos;, &apos;&apos;, $dbType));
            $autoincrement = true;
        }

        $dbType = strtok($dbType, &apos;(), &apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This change solves this issue for me, and as far as I can tell, has no other consequences.&lt;/p&gt;</description>
                <environment>SQL Server</environment>
            <key id="14753">DBAL-482</key>
            <summary>SQL Server Schema Manager returns incorrect value for autoincrement on IDENTITY columns</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="wschalle">William Schaller</reporter>
                        <labels>
                        <label>schematool</label>
                        <label>sqlserver</label>
                        <label>sqlsrv</label>
                    </labels>
                <created>Wed, 3 Apr 2013 15:25:55 +0000</created>
                <updated>Wed, 1 May 2013 13:09:45 +0000</updated>
                    <resolved>Wed, 1 May 2013 13:09:45 +0000</resolved>
                            <version>2.2</version>
                <version>2.3</version>
                <version>2.3.3</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20158" author="beberlei" created="Wed, 1 May 2013 13:09:45 +0000"  >&lt;p&gt;Fixed for 2.3.4 and was fixed for 2.4 in a different way already.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-474] SchemaManager / Connection on PostgreSQL platform does not respect filterExpression for sequences</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-474</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Dear Symfony team,&lt;/p&gt;

&lt;p&gt;the filterExpression on AbstractSchemaManager seems not to work for sequences.&lt;/p&gt;

&lt;p&gt;This only happens under postgres. &lt;/p&gt;

&lt;p&gt;It seems the way the sequences are handled are the culprit: It tries to get min_value etc of sequences without matching sequence names to the filter expression in advance. &lt;/p&gt;

&lt;p&gt;If for example access to the sequences is denied, (Different schema without permissions for the current entity manager), any higher-level ORM operations like generating migration versions fail.&lt;/p&gt;

&lt;p&gt;--------------------- UPDATE&lt;/p&gt;

&lt;p&gt;the context is when using migrations. Positive regexp expressions do not limit the migration to a single schema. eg ^schemaname.$&lt;br/&gt;
Instead, all sequences on the current database are returned.&lt;br/&gt;
When trying to limit a migration to a single schema consecutively this doesn&apos;t work.&lt;br/&gt;
We are using a per-schema connection, so this results in a lot of hassle for us.&lt;/p&gt;</description>
                <environment>Windows &amp;amp; Linux</environment>
            <key id="14734">DBAL-474</key>
            <summary>SchemaManager / Connection on PostgreSQL platform does not respect filterExpression for sequences</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 27 Mar 2013 20:39:57 +0000</created>
                <updated>Wed, 24 Apr 2013 20:05:59 +0000</updated>
                                    <version>2.2.2</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20000" author="beberlei" created="Sun, 14 Apr 2013 10:16:56 +0000"  >&lt;p&gt;Can you paste an exception trace? I see that filtering is applied to sequences, but your description seems to indicate this happens due to an SQL query much earlier?&lt;/p&gt;</comment>
                    <comment id="20097" author="josdewitte" created="Wed, 24 Apr 2013 10:43:00 +0000"  >&lt;p&gt;Dear Benjamin,&lt;/p&gt;

&lt;p&gt;the context is when using migrations. Positive regexp expressions do not limit the migration to a single schema. eg ^schemaname.$&lt;br/&gt;
Instead, all sequences on the current database are returned. &lt;br/&gt;
When trying to limit a migration to a single schema consecutively this doesn&apos;t work.&lt;br/&gt;
We are using a per-schema connection, so this results in a lot of hassle for us.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-420] Schema Drop SQL incorrect on PostgreSQL with entities with GeneratedValue(strategy=&quot;IDENTITY&quot;)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-420</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This problem is probably related to #&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-54&quot; title=&quot;Incorrect sequence dropping in PostgreSQL&quot;&gt;&lt;del&gt;DBAL-54&lt;/del&gt;&lt;/a&gt;. However that was closed by the raiser as he changed his Entity model and it went away.&lt;/p&gt;

&lt;p&gt;When schema drop is run the following error occurs:&lt;br/&gt;
Doctrine\DBAL\DBALException: An exception occurred while executing &apos;DROP SEQUENCE radacct_radacctid_seq&apos;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;2BP01&amp;#93;&lt;/span&gt;: Dependent objects still exist: 7 ERROR:  cannot drop sequence radacct_radacctid_seq because other objects depend on it&lt;br/&gt;
DETAIL:  default for table radacct column radacctid depends on sequence radacct_radacctid_seq&lt;br/&gt;
HINT:  Use DROP ... CASCADE to drop the dependent objects too.&lt;/p&gt;


&lt;p&gt;The source of this problem is the difference between strategy=&quot;IDENTITY&quot; and strategy=&quot;SEQUENCE&quot;&lt;/p&gt;

&lt;p&gt;With SEQUENCE doctrine creates the table schema with field type BIGINT and no specified. It then creates a seperate sequence and as far as I can tell takes care of getting and inserting the next id number itself.&lt;/p&gt;

&lt;p&gt;With IDENTITY doctrine creates the table schema with field type BIGSERIAL and no specified default. Now postgres automatically creates a sequence and creates the column with type BIGINT and sets the DEFAULT to the pgpsql statement required to get the nextval from the sequence.&lt;/p&gt;

&lt;p&gt;At this point the two differently configured tables will work successfully and identically, except SEQUENCE tables will only get a correct new ID when run through the doctrine code while IDENTITY tables will get the correct new ID whenever an insert is done to the table.&lt;/p&gt;

&lt;p&gt;Because in the case of an IDENTITY field postgresql creates the field with a default value refering to the sequence the sequence can not be deleted before the table reference is removed.&lt;/p&gt;

&lt;p&gt;For my case I need the IDENTITY fields to work as we have a RADIUS server that needs to insert into one table which is managed and mapped to an entity in Doctrine.&lt;/p&gt;

&lt;p&gt;Swapping the order of DROP TABLE and DROP SEQUENCE commands in Doctrine/DBAL/Schema/Visitor/DropSchemaSqlCollector.php in getQueries() line 159. Does not work as a quick fix. The following error occurs as the sequence is quite correctly be dropped along with the table.&lt;/p&gt;

&lt;p&gt;Doctrine\DBAL\DBALException: An exception occurred while executing &apos;DROP SEQUENCE radacct_radacctid_seq&apos;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42P01&amp;#93;&lt;/span&gt;: Undefined table: 7 ERROR:  sequence &quot;radacct_radacctid_seq&quot; does not exist&lt;/p&gt;
</description>
                <environment>Symfony 2.1, PHP5.4, PostgreSQL 9.1 on Ubuntu 12.04</environment>
            <key id="14403">DBAL-420</key>
            <summary>Schema Drop SQL incorrect on PostgreSQL with entities with GeneratedValue(strategy=&quot;IDENTITY&quot;)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="adamashley">Adam Ashley</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 23 Jan 2013 09:22:22 +0000</created>
                <updated>Sun, 14 Apr 2013 12:37:30 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 12:37:30 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="19395" author="adamashley" created="Thu, 24 Jan 2013 00:00:41 +0000"  >&lt;p&gt;This issue also appears to affect Doctrine_Migrations. Generated migrations try to drop and recreate automatically generated sequences associated with SERIAL fields making a mess of the database.&lt;/p&gt;</comment>
                    <comment id="19882" author="beberlei" created="Fri, 22 Mar 2013 10:05:35 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-289&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19985" author="powerkiki" created="Fri, 12 Apr 2013 06:20:15 +0000"  >&lt;p&gt;@Adam Ashley, could you test whether &lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt; solve your issue ?&lt;/p&gt;</comment>
                    <comment id="20008" author="doctrinebot" created="Sun, 14 Apr 2013 12:36:08 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-289&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-411] Schema updater breaks when using backticks in tablenames.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-411</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using backticks around table-names (for example &quot;`Order`&quot;), the Doctrine schema update tool wants to recreate all foreign keys on every run.&lt;/p&gt;

&lt;p&gt;This error was introduced in commit cb3ec49cb4401bd1c8be6ba9671f651802586eaf&lt;/p&gt;</description>
                <environment>Debian Linux 6.0, PHP 5.3.3, MySQL 5.1.63</environment>
            <key id="14359">DBAL-411</key>
            <summary>Schema updater breaks when using backticks in tablenames.</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="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="endaco">Endaco</reporter>
                        <labels>
                        <label>schematool</label>
                    </labels>
                <created>Tue, 8 Jan 2013 11:24:46 +0000</created>
                <updated>Tue, 8 Jan 2013 11:24:46 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-367] Reverse engnering do not work with Oracle DB</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-367</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&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;
$ doctrine orm:convert-mapping --filter=&lt;span class=&quot;code-quote&quot;&gt;&quot;ms$ions&quot;&lt;/span&gt; xml .

  [Doctrine\DBAL\DBALException]
  Unknown database type binary_float requested, Doctrine\DBAL\Platforms\OraclePlatform may not support it.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;cli-config.php:&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;

use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;

require_once &apos;Doctrine/Common/&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;.php&apos;;

define(&apos;APPLICATION_ENV&apos;, &lt;span class=&quot;code-quote&quot;&gt;&quot;development&quot;&lt;/span&gt;);
error_reporting(E_ALL);

$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&apos;);
$classLoader-&amp;gt;register();

$config = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Configuration();
$config-&amp;gt;setProxyDir(__DIR__);
$config-&amp;gt;setProxyNamespace(&apos;Proxies&apos;);

$config-&amp;gt;setAutoGenerateProxyClasses((APPLICATION_ENV == &lt;span class=&quot;code-quote&quot;&gt;&quot;development&quot;&lt;/span&gt;));

AnnotationRegistry::registerFile(&lt;span class=&quot;code-quote&quot;&gt;&quot;Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php&quot;&lt;/span&gt;);
$reader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; AnnotationReader();
$driverImpl = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Mapping\Driver\AnnotationDriver($reader, array(__DIR__ . &lt;span class=&quot;code-quote&quot;&gt;&quot;/../php/ru/niifhm/bioinformatics/biodb/model&quot;&lt;/span&gt;));
$config-&amp;gt;setMetadataDriverImpl($driverImpl);

&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (APPLICATION_ENV == &lt;span class=&quot;code-quote&quot;&gt;&quot;development&quot;&lt;/span&gt;) {
    $cache = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Cache\ArrayCache();
} &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
    $cache = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Cache\ApcCache();
}

$config-&amp;gt;setMetadataCacheImpl($cache);
$config-&amp;gt;setQueryCacheImpl($cache);

$connectionOptions = array(
    &apos;driver&apos;   =&amp;gt; &apos;oci8&apos;,
    &apos;host&apos;     =&amp;gt; &apos;host.name&apos;,
    &apos;dbname&apos;   =&amp;gt; &apos;db.name&apos;,
    &apos;user&apos;     =&amp;gt; &apos;user.name&apos;,
    &apos;password&apos; =&amp;gt; &apos;user.password&apos;
);

$em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config);
$platform = $em-&amp;gt;getConnection()-&amp;gt;getDatabasePlatform();
$platform-&amp;gt;registerDoctrineTypeMapping(&apos;&lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt;&apos;, &apos;string&apos;);

$em-&amp;gt;getConfiguration()-&amp;gt;setMetadataDriverImpl(
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Mapping\Driver\DatabaseDriver(
        $em-&amp;gt;getConnection()-&amp;gt;getSchemaManager()
    )
);

$helperSet = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Symfony\Component\Console\Helper\HelperSet(array(
    &apos;db&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em-&amp;gt;getConnection()),
    &apos;em&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)
));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>PHP 5.3.3-1ubuntu9.10 with Suhosin-Patch (cli) (built: Feb 11 2012 06:21:15)&lt;br/&gt;
oci8-1.4.7 as PHP extension builded from pecl repository with instantclient-basic-linux.x64-11.2.0.3.0.zip and instantclient-sdk-linux.x64-11.2.0.3.0.zip&lt;br/&gt;
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production</environment>
            <key id="14141">DBAL-367</key>
            <summary>Reverse engnering do not work with Oracle DB</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="zeleniy">Zelenin Alexandr</reporter>
                        <labels>
                        <label>Cli</label>
                        <label>oracle</label>
                        <label>schematool</label>
                    </labels>
                <created>Thu, 18 Oct 2012 13:43:14 +0000</created>
                <updated>Wed, 23 Jan 2013 21:55:55 +0000</updated>
                                    <version>2.3</version>
                                                <component>Drivers</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19377" author="ocramius" created="Wed, 23 Jan 2013 21:55:55 +0000"  >&lt;p&gt;Formatting&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-346] Generated schema fails on MySQL (BLOB/TEXT cant have DEFAULT value)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-346</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In my symfony 2.1 project i was including &lt;a href=&quot;https://github.com/schmittjoh/JMSPaymentCoreBundle&quot; class=&quot;external-link&quot;&gt;JMSPaymentCoreBundle&lt;/a&gt; and did the vanilla installation.&lt;/p&gt;

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

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

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

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

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

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

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

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

&lt;p&gt;Thank you very much and best of Regards!&lt;br/&gt;
Sascha&lt;/p&gt;</description>
                <environment>Symfony 2.1.x (dev/master), Doctrine 2.2.3, MySQL 5.5.x</environment>
            <key id="14046">DBAL-346</key>
            <summary>Generated schema fails on MySQL (BLOB/TEXT cant have DEFAULT value)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="thenetexperts">Sascha Ahmann</reporter>
                        <labels>
                        <label>Cli</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 19 Sep 2012 10:10:10 +0000</created>
                <updated>Thu, 20 Sep 2012 17:29:30 +0000</updated>
                    <resolved>Thu, 20 Sep 2012 17:29:30 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>