Subject: | t/10schema.t in Jifty::DBI 0.09 requires DBIx::DBSchema >= 0.28 for SQLite support |
Hi Jesse,
Jifty::DBI 0.09 fails test t/10schema.t when:
- DBD::SQLite is installed
- DBIx::DBSchema < 0.28 is installed (does not include SQLite support)
The @available_drivers setup in t/utils.pl only checks for DBD::* and not the matching DBIx::DBSchema::DBD::* driver; also no minimum version of DBIx::DBSchema is specified.
Patches for both issues follow.
Cheers,
Stephen
--- Jifty-DBI-0.09/Makefile.PL.dist 2005-12-29 23:47:41.000000000 +1100
+++ Jifty-DBI-0.09/Makefile.PL 2006-01-07 00:20:02.000000000 +1100
@@ -24,7 +24,7 @@
features(
'Schema generation' => [
-default => 1,
- 'DBIx::DBSchema' => '',
+ 'DBIx::DBSchema' => '0.28',
'Class::Accessor' => '',
],
);
--- Jifty-DBI-0.09/t/utils.pl.dist 2005-11-09 07:33:00.000000000 +1100
+++ Jifty-DBI-0.09/t/utils.pl 2006-01-07 00:09:37.000000000 +1100
@@ -30,6 +30,7 @@
=cut
our @available_drivers = grep { eval "require DBD::". $_ } @supported_drivers;
+@available_drivers = grep { eval "require DBIx::DBSchema::DBD::" . $_ } @available_drivers;
=head1 functionS