X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FBase.pm;h=47d965456f4ced92e3689b5769d1400f7d4b4621;hb=abaf2c66f2293cf951b6cd44b95ff1924e344f5f;hp=dff441925dcfed9d572b403848082de871c6a729;hpb=02356864b0d0bcdf0716a4adfd0a69c8360fe00d;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index dff4419..47d9654 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -11,6 +11,8 @@ use Data::Dump qw/ dump /; use POSIX qw//; require DBIx::Class; +our $VERSION = '0.03999_01'; + __PACKAGE__->mk_ro_accessors(qw/ schema schema_class @@ -493,11 +495,12 @@ sub _load_classes { $self->_dbic_stmt($table_class,'add_columns',@$cols); } else { - my %cols_hash; - foreach my $col (@$cols) { - $cols_hash{$col} = \%{($col_info->{$col})}; - } - $self->_dbic_stmt($table_class,'add_columns',%cols_hash); + my %col_info_lc = map { lc($_), $col_info->{$_} } keys %$col_info; + $self->_dbic_stmt( + $table_class, + 'add_columns', + map { $_, ($col_info_lc{$_}||{}) } @$cols + ); } my $pks = $self->_table_pk_info($table) || [];