Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 64041
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: stephen [...] freenode.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Schema::Loader can generate multiple relations with the same name when two tables reference each other
Date: Sat, 18 Dec 2010 21:35:22 +0000
To: bug-dbix-class-schema-loader [...] rt.cpan.org
From: Stephen Bennett <stephen [...] freenode.net>
I have a table, groups, which has an 'active_change' column referencing group_changes. group_changes has a 'group' column referencing groups. If 'active_change' has a unique constraint, then S::L will generate both a might_have and a belongs_to relation named 'group' in GroupChange. DDL for the database in question is attached.

Message body is not shown because sender requested not to inline it.

fixed in git
Fixed in 0.07011