fixed SQLite dep and dir copy test failure
[dbsrgits/DBIx-Class-Fixtures.git] / lib / DBIx / Class / Fixtures / Versioned.pm
index 3533688..cdf02d2 100644 (file)
@@ -4,6 +4,7 @@ use strict;
 use warnings;
 
 use base qw/DBIx::Class::Fixtures/;
+use DBIx::Class::Fixtures::SchemaVersioned;
 use Class::C3;
 
 =head1 VERSION
@@ -32,7 +33,6 @@ sub populate {
   unless ($params->{version}) {
     return DBIx::Class::Exception->throw('You must pass a version to populate');
   }
-
   return $self->next::method(@_);
 }
 
@@ -44,11 +44,9 @@ sub _generate_schema {
   $DBIx::Class::Fixtures::SchemaVersioned::VERSION = $params->{version};
 
   my $schema = $self->next::method(@_);
-  $schema->schema_version($params->{version});
 
   # set the db version to the schema version
   $schema->upgrade(); # set version number
-
   return $schema;
 }