Revision history for Perl extension DBIx::Class::Schema::Loader
+0.03006 Wed Jul 26 00:14:58 UTC 2006
+ - Fixed column-case issue w/ columns_info_for
+
0.03005 Wed Jul 19 15:09:30 UTC 2006
[ Pretty much everything in this release originates from nilsonsfj patches ]
- bugfix: mysql unique constraint code had an
# Don't ship the test junk
^t/_dump
^t/dbictest.db
+^t/dbictest.db-journal
+^t/sqlite.test
+^t/sqlite.test-journal
# Don't ship the last dist we built :)
\.tar\.gz$
# Always remember to do all digits for the version even if they're 0
# i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports
# brain damage and presumably various other packaging systems too
-our $VERSION = '0.03005';
+our $VERSION = '0.03006';
__PACKAGE__->mk_classaccessor('dump_to_dir');
__PACKAGE__->mk_classaccessor('loader');
$self->_dbic_stmt($table_class,'add_columns',@$cols);
}
else {
+ my %col_info_lc = map { lc($_), $col_info->{$_} } keys %$col_info;
$self->_dbic_stmt(
$table_class,
'add_columns',
- map { $_, $col_info->{$_} } @$cols
+ map { $_, ($col_info_lc{$_}||{}) } @$cols
);
}
plan tests => 8;
-rmtree($dump_path, 1, 0711);
+rmtree($dump_path, 1, 1);
eval { DBICTest::Schema::1->connect($make_dbictest_db::dsn) };
ok(!$@, 'no death with dump_directory set') or diag "Dump failed: $@";
like(shift @warn_output, $_) foreach (@warnings_regexes);
-rmtree($dump_path, 1, 0711);
+rmtree($dump_path, 1, 1);
eval { DBICTest::Schema::2->connect($make_dbictest_db::dsn) };
ok(!$@, 'no death with dump_directory set (overwrite1)')