Mercurial > pub > Impl
view Lib/Schema/DB/Constraint/Index.pm @ 169:fd92830036c3
corrected IMPL::SQL::Schema::Diff
author | sourcer |
---|---|
date | Tue, 17 May 2011 00:04:28 +0400 |
parents | 4267a2ac3d46 |
children |
line wrap: on
line source
package Schema::DB::Constraint::Index; use strict; use Common; use parent qw(Schema::DB::Constraint); sub CTOR { my $this = shift; $this->SUPER::CTOR(@_); my %colnames; not grep { $colnames{$_}++ } $this->Columns or die new Exception('Each column in the index can occur only once'); } 1;