<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 26 03:09:32 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/DC-830/DC-830.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>[DC-830] Migration for up() not adding suffix for index</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-830</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I am still getting the same issue as previously closed a while ago on trac &lt;a href=&quot;http://trac.doctrine-project.org/ticket/1964&quot; class=&quot;external-link&quot;&gt;http://trac.doctrine-project.org/ticket/1964&lt;/a&gt;&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;migration.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&amp;lt;?php
/**
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class Add_Category_Slug_Index &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Doctrine_Migration_Base
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function up()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;addIndex(&apos;category&apos;, &apos;category_sluggable&apos;, array(
             &apos;fields&apos; =&amp;gt; 
             array(
              0 =&amp;gt; &apos;slug&apos;,
             ),
             &apos;type&apos; =&amp;gt; &apos;unique&apos;,
             ));
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function down()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;removeIndex(&apos;category&apos;, &apos;category_sluggable&apos;, array(
             &apos;fields&apos; =&amp;gt; 
             array(
              0 =&amp;gt; &apos;slug&apos;,
             ),
             &apos;type&apos; =&amp;gt; &apos;unique&apos;,
             ));
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The above migration generates an index named &lt;b&gt;category_sluggable&lt;/b&gt; instead of  &lt;b&gt;category_sluggable_idx&lt;/b&gt;&lt;/p&gt;</description>
                <environment>Postgresql 8.4 / Symfony 1.4.6</environment>
            <key id="11780">DC-830</key>
            <summary>Migration for up() not adding suffix for index</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="webpragmatist">webPragmatist</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Aug 2010 17:05:06 +0000</created>
                <updated>Sat, 21 Aug 2010 07:06:10 +0000</updated>
                                    <version>1.2.2</version>
                                                <component>Migrations</component>
                        <due></due>
                    <votes>2</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13968" author="webpragmatist" created="Mon, 16 Aug 2010 17:57:53 +0000"  >&lt;p&gt;If I change the name in the up() to &lt;b&gt;category_sluggable_idx&lt;/b&gt; both up and down work properly.&lt;/p&gt;</comment>
                    <comment id="14023" author="argasek" created="Sat, 21 Aug 2010 07:06:10 +0000"  >&lt;p&gt;Confirming. I had the same problem last week and as a workaround I had to change suffix from &quot;%s_idx&quot; to &quot;%s&quot;. Even if the bug is not reproducible in a test case, it indeed happens in live environment on PostgreSQL (in my case, Symphony is not used).&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>