[DBIx-Class-Devel] [dbix-class] Allow SQLT options to be passed to unique constraints (#88)
Alastair McGowan-Douglas
notifications at github.com
Tue Nov 3 15:13:14 GMT 2015
> @@ -149,13 +149,16 @@ sub parse {
>
> $table->primary_key(@primary) if @primary;
>
> - my %unique_constraints = $source->unique_constraints;
> - foreach my $uniq (sort keys %unique_constraints) {
> - if (!$source->_compare_relationship_keys($unique_constraints{$uniq}, \@primary)) {
> + my $unique_constraints = $source->unique_constraints_info;
> + foreach my $uniq (sort keys %$unique_constraints) {
> + my $cons = $unique_constraints->{$uniq};
Surely "because the lines get really long otherwise" is the most common reason?
---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/88/files#r43758880
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20151103/82a3cc97/attachment.htm>
More information about the DBIx-Class-Devel
mailing list