pass sqlite and pg version properly on ->deploy for SQLT trunk
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class / Storage / DBI / SQLite.pm
index ec7f1bf..4a95dbf 100644 (file)
@@ -50,12 +50,9 @@ sub deployment_statements {
 
   $sqltargs ||= {};
 
-  my $sqlite_version = $self->_get_dbh->{sqlite_version};
-
-  # numify, SQLT does a numeric comparison
-  $sqlite_version =~ s/^(\d+) \. (\d+) (?: \. (\d+))? .*/${1}.${2}/x;
-
-  $sqltargs->{producer_args}{sqlite_version} = $sqlite_version;
+  if (my $version = $self->_server_info->{dbms_version}) {
+    $sqltargs->{producer_args}{sqlite_version} = $version;
+  }
 
   $self->next::method($schema, $type, $version, $dir, $sqltargs, @rest);
 }