From: Luke Saunders Date: Fri, 1 Aug 2008 19:07:17 +0000 (+0000) Subject: removed the versioned stuff X-Git-Tag: v1.001002~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d01826ae39bea00c05d21606e5b6784a5814ee58;p=dbsrgits%2FDBIx-Class-Fixtures.git removed the versioned stuff --- diff --git a/lib/DBIx/Class/Fixtures/SchemaVersioned.pm b/lib/DBIx/Class/Fixtures/SchemaVersioned.pm deleted file mode 100644 index 04edfd9..0000000 --- a/lib/DBIx/Class/Fixtures/SchemaVersioned.pm +++ /dev/null @@ -1,18 +0,0 @@ -package DBIx::Class::Fixtures::SchemaVersioned; - -use strict; -use warnings; - -use base 'DBIx::Class::Schema::Loader'; - -our $VERSION = 'set-when-loading'; - -__PACKAGE__->load_components('Schema::Versioned'); -__PACKAGE__->loader_options( - # debug => 1, - ); - -sub schema_version { - return $DBIx::Class::Fixtures::SchemaVersioned::VERSION; -} -1; diff --git a/lib/DBIx/Class/Fixtures/Versioned.pm b/lib/DBIx/Class/Fixtures/Versioned.pm deleted file mode 100644 index 8fb0605..0000000 --- a/lib/DBIx/Class/Fixtures/Versioned.pm +++ /dev/null @@ -1,45 +0,0 @@ -package DBIx::Class::Fixtures::Versioned; - -use strict; -use warnings; - -use base qw/DBIx::Class::Fixtures/; -use DBIx::Class::Fixtures::SchemaVersioned; -use Class::C3; - -=head1 NAME - -DBIx::Class::Fixtures::Versioned - -=head1 DESCRIPTION - -Just ignore it for now, but it will vaguely tie in to DBIx::Class::Schema::Versioned's functionality eventually. - -=cut - -sub populate { - my $self = shift; - my ($params) = @_; - - $self->schema_class("DBIx::Class::Fixtures::SchemaVersioned"); - unless ($params->{version}) { - return DBIx::Class::Exception->throw('You must pass a version to populate'); - } - return $self->next::method(@_); -} - -sub _generate_schema { - my $self = shift; - my ($params) = @_; - - # manually set the schema version - $DBIx::Class::Fixtures::SchemaVersioned::VERSION = $params->{version}; - - my $schema = $self->next::method(@_); - - # set the db version to the schema version - $schema->upgrade(); # set version number - return $schema; -} - -1;