pass sqlite and pg version properly on ->deploy for SQLT trunk
Rafael Kitover [Tue, 1 Jun 2010 17:48:24 +0000 (17:48 +0000)]
lib/DBIx/Class/Optional/Dependencies.pm
lib/DBIx/Class/Storage/DBI/Pg.pm
lib/DBIx/Class/Storage/DBI/SQLite.pm

index 7dce810..12e3053 100644 (file)
@@ -65,7 +65,7 @@ my $reqs = {
 
   deploy => {
     req => {
-      'SQL::Translator'           => '0.11005',
+      'SQL::Translator'           => '0.11006',
     },
     pod => {
       title => 'Storage::DBI::deploy()',
index 8dca063..d1e8e1e 100644 (file)
@@ -205,7 +205,7 @@ sub deployment_statements {
 
   $sqltargs ||= {};
 
-  if (my $version = $self->_server_info->{normalized_dbms_version}) {
+  if (my $version = $self->_server_info->{dbms_version}) {
     $sqltargs->{producer_args}{postgres_version} = $version;
   }
 
index b30d2ef..4a95dbf 100644 (file)
@@ -50,7 +50,7 @@ sub deployment_statements {
 
   $sqltargs ||= {};
 
-  if (my $version = $self->_server_info->{normalized_dbms_version}) {
+  if (my $version = $self->_server_info->{dbms_version}) {
     $sqltargs->{producer_args}{sqlite_version} = $version;
   }