[Dbix-class] DBIx::Class::Schema::Loader - unique_constraints?
Adam Sjøgren
asjo at koldfront.dk
Mon Mar 6 13:38:18 CET 2006
On Mon, 06 Mar 2006 13:08:18 +0100, Adam wrote:
> Is DBIx::Class::Schema::Loader supposed to figure out the
> unique_constraints by itself, or should I configure them somehow?
I can make it work by calling:
__PACKAGE__->source('MyTable')->add_unique_constraint(unique=>[qw(field1 field2)]);
after the call to ->load_from_connection (in my Schema-class that
inherits from D:C:Schema::Loader).
More information about the Dbix-class
mailing list