From: Brandon Black Date: Fri, 30 Mar 2007 23:38:00 +0000 (+0000) Subject: update requirements X-Git-Tag: 0.03999_01~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=79fe00812d679113a87eed3f9031470d4116e0f5;p=dbsrgits%2FDBIx-Class-Schema-Loader.git update requirements --- diff --git a/Build.PL b/Build.PL index 81897ad..19bf3c2 100644 --- a/Build.PL +++ b/Build.PL @@ -8,29 +8,29 @@ my %arguments = ( 'File::Spec' => 0, 'Scalar::Util' => 0, 'Data::Dump' => 1.06, - 'UNIVERSAL::require' => 0.10, + 'UNIVERSAL::require' => 0.11, 'Lingua::EN::Inflect::Number' => 1.1, 'Text::Balanced' => 0, 'Digest::MD5' => 2.36, - 'Class::Accessor' => 0.27, - 'Class::Data::Accessor' => 0.02, - 'Class::C3' => 0.11, + 'Class::Accessor::Fast' => 0.30, + 'Class::Data::Accessor' => 0.03, + 'Class::C3' => 0.14, 'Carp::Clan' => 0, - 'DBIx::Class' => 0.06003, + 'DBIx::Class' => 0.07005, }, recommends => { 'Class::Inspector' => 0, - 'DBI' => 1.50, - 'DBD::SQLite' => 1.12, - 'DBD::mysql' => 3.0003, - 'DBD::Pg' => 1.49, - 'DBD::DB2' => 0.78, + 'DBI' => 1.53, + 'DBD::SQLite' => 1.13, + 'DBD::mysql' => 4.004, + 'DBD::Pg' => 1.49, # Soon to be 1.50 + 'DBD::DB2' => 1.0, 'DBD::Oracle' => 0.19, }, build_requires => { 'Test::More' => 0.32, - 'DBI' => 1.50, - 'DBD::SQLite' => 1.12, + 'DBI' => 1.53, + 'DBD::SQLite' => 1.13, 'File::Path' => 0, }, create_makefile_pl => 'passthrough', diff --git a/Changes b/Changes index 27d93fe..4cca781 100644 --- a/Changes +++ b/Changes @@ -9,7 +9,7 @@ Revision history for Perl extension DBIx::Class::Schema::Loader (they now preserve customizations by default) - Added support for DBI's new standard "statistics_info" method to gather unique key info (only supported by - DBD::Pg trunk + DBI >= 1.52 so far) + DBD::Pg trunk afaik) - columns_info_for imported from DBIx::Class - relationships are now on by default, use skip_relationships to disable them diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index 47b666b..a51bfc5 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -14,10 +14,8 @@ use Scalar::Util qw/ weaken /; # brain damage and presumably various other packaging systems too our $VERSION = '0.03999_01'; -__PACKAGE__->mk_classaccessor('dump_to_dir'); __PACKAGE__->mk_classaccessor('_loader_args' => {}); -__PACKAGE__->mk_classaccessor('_loader_invoked'); -__PACKAGE__->mk_classaccessor('_loader'); +__PACKAGE__->mk_classaccessors(qw/dump_to_dir _loader_invoked _loader/); =head1 NAME diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm index e599b32..2020b0a 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm @@ -40,8 +40,7 @@ sub _table_uniq_info { # Use the default support if available return $self->next::method($table) - if $DBI::VERSION >= 1.52 - && $DBD::Pg::VERSION >= 1.50; + if $DBD::Pg::VERSION >= 1.50; my @uniqs; my $dbh = $self->schema->storage->dbh;