<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 16:48:01 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DBAL-199/DBAL-199.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DBAL-199] MSSQL change column name</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-199</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;to create a schema for mssql works ok, but to alter the name of a column, use the SQL command &quot;CHANGE&quot; and Mssql not recognize this command.&lt;br/&gt;
to alter the name of a column in MSSQL you should use the store procedure &quot;sp_rename&quot;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms188351.aspx&quot; class=&quot;external-link&quot;&gt;http://msdn.microsoft.com/en-us/library/ms188351.aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do not know if I&apos;m doing something the wrong way, but the command &quot;php app \ console doctrine: schema: update&quot; does not work by altering the name of the column&lt;/p&gt;

&lt;p&gt;sorry my english it&apos;s very poor&lt;/p&gt;</description>
                <environment>Symfony console, MSSQL Server 2008 r2</environment>
            <key id="13189">DBAL-199</key>
            <summary>MSSQL change column 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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="dv3000">Diego Vidal</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Nov 2011 20:13:26 +0000</created>
                <updated>Wed, 14 Nov 2012 22:55:36 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 11:46:14 +0000</resolved>
                            <version>2.1.2</version>
                <version>2.1.7</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16935" author="fredjiles" created="Wed, 30 Nov 2011 22:10:20 +0000"  >&lt;p&gt;I get this error as well.  Just trying to change a field from nvarchar(40) to nvarchar(60) outputs this sql&lt;br/&gt;
ALTER TABLE offense_extension CHANGE disposition disposition NVARCHAR(60) DEFAULT NULL&lt;/p&gt;

&lt;p&gt;It should be ALTER TABLE offense_extension ALTER COLUMN disposition NVARCHAR(60) NULL&lt;/p&gt;</comment>
                    <comment id="17194" author="beberlei" created="Mon, 9 Jan 2012 11:46:13 +0000"  >&lt;p&gt;This is fixed in another ticket i just realized and is included in the latest 2.1 DBAL release.&lt;/p&gt;</comment>
                    <comment id="18987" author="pidikun" created="Wed, 14 Nov 2012 22:52:45 +0000"  >&lt;p&gt;This problem still exists.&lt;/p&gt;

&lt;p&gt;Here are some of the sql lines generated with :&lt;/p&gt;

&lt;p&gt;ALTER TABLE msrs CHANGE Temp27 Temp27 SMALLINT NOT NULL;&lt;br/&gt;
ALTER TABLE batches CHANGE status status BIT DEFAULT NULL;&lt;/p&gt;

&lt;p&gt;Doctrine DBAL Version: 2.1.7&lt;br/&gt;
MSSQL 2008 R2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>