X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FFixtures%2FVersioned.pm;h=cdf02d2684469c90c2a0512ee149003ce9d1058f;hb=0caf5ad60a45e06c31dee16032ac15ecc3fa6732;hp=3533688bf1278fdbc8e6c80ca4f5ed1ba0904aea;hpb=9f96b203ed72d410bcb55a41b2d504eb5d8507d1;p=dbsrgits%2FDBIx-Class-Fixtures.git diff --git a/lib/DBIx/Class/Fixtures/Versioned.pm b/lib/DBIx/Class/Fixtures/Versioned.pm index 3533688..cdf02d2 100644 --- a/lib/DBIx/Class/Fixtures/Versioned.pm +++ b/lib/DBIx/Class/Fixtures/Versioned.pm @@ -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; }