removed the versioned stuff
Luke Saunders [Fri, 1 Aug 2008 19:07:17 +0000 (19:07 +0000)]
lib/DBIx/Class/Fixtures/SchemaVersioned.pm [deleted file]
lib/DBIx/Class/Fixtures/Versioned.pm [deleted file]

diff --git a/lib/DBIx/Class/Fixtures/SchemaVersioned.pm b/lib/DBIx/Class/Fixtures/SchemaVersioned.pm
deleted file mode 100644 (file)
index 04edfd9..0000000
+++ /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 (file)
index 8fb0605..0000000
+++ /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;