On Thu, May 15, 2008 at 2:24 PM, Ash Berlin <[EMAIL PROTECTED]> 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.

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]

Reply via email to