[Dbix-class] SQL::Translator::Parser::DBIx::Class unique symbol change

luke saunders luke.saunders at gmail.com
Thu May 15 14:40:32 BST 2008


On Thu, May 15, 2008 at 2:24 PM, Ash Berlin <ash_cpan at firemirror.com> wrote:
>
> On 15 May 2008, at 14:08, luke saunders wrote:
>>
>> What were these cases? Is that not just a bug with the unique symbol
>> generator in the producer?
>
> I'm not sure of the exact cause any more, but I think it was to do with
> multi-col unique constraints and FKs - i.e. if you have a unique across two
> cols, and one of those is a FK constraint also, it would just barf - the 2nd
> and 3rd changes in the diff. Previously it was just using the first column
> name, which caused problems.
>

So presumably it was barfing because the names were the same right?
Which would be fixed if the producer just named the duplicate '*_2'.
It already does that with FK names so shouldn't be hard to enforce the
same rule globally.



More information about the DBIx-Class mailing list