[DBIx-Class-Devel] [dbix-class] Allow SQLT options to be passed to unique constraints (#88)

Peter Rabbitson notifications at github.com
Tue Nov 3 14:51:46 GMT 2015


> @@ -702,7 +702,7 @@ sub sequence {
>  
>  =over 4
>  
> -=item Arguments: $name?, \@colnames
> +=item Arguments: $name?, \@colnames, \%extra?
>  

This is not a useful way to extend the signature - too many unknowns. Make it

`$name?, \%uc_info | \@colnames`

With both *names optional* and *\@colnames* marked as discouraged in the docs. I.e. people should be doing:
```
add_unique_constraints(
  foo => { ... }
  bar => { ... }
)
```

just like they do with `add_columns` today.

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/88/files#r43755831
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20151103/968e2c85/attachment.htm>


More information about the DBIx-Class-Devel mailing list