unless ($params->{version}) {
return DBIx::Class::Exception->throw('You must pass a version to populate');
}
-
return $self->next::method(@_);
}
$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;
}