=head1 NAME
+DBIx::Class::Fixtures
+
=head1 SYNOPSIS
use DBIx::Class::Fixtures;
my $schema = $params->{schema};
- $self->msg("generating fixtures\n");
+ $self->msg("generating fixtures");
my $tmp_output_dir = dir($output_dir, '-~dump~-');
unless (-e $tmp_output_dir) {
=head1 NAME
-=head1 SYNOPSIS
+DBIx::Class::Fixtures::Versioned
=head1 DESCRIPTION
-=head1 AUTHOR
-
-=head1 CONTRIBUTORS
-
-=head1 METHODS
-
-=head2 new
+Just ignore it for now, but it will vaguely tie in to DBIx::Class::Schema::Versioned's functionality eventually.
=cut
$self->schema_class("DBIx::Class::Fixtures::SchemaVersioned");
unless ($params->{version}) {
- return DBIx::Class::Exception->throw('You must pass a version to populate');
+ return DBIx::Class::Exception->throw('You must pass a version to populate');
}
return $self->next::method(@_);
my $self = shift;
my ($params) = @_;
- my $v = $self->schema_class;
# manually set the schema version
- ${$v::VERSION} = $params->{version};
+ $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
+ $schema->upgrade(); # set version number
return $schema;
}