From: Arthur Axel 'fREW' Schmidt Date: Sat, 27 Feb 2010 10:30:49 +0000 (-0600) Subject: namespace reorg X-Git-Tag: v0.001000_01~109 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c703d15de5286961942f33cdeff6ad978c90d3de;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git namespace reorg --- diff --git a/lib/DBIx/Class/DeploymentHandler/DatabaseToSchemaVersions.pm b/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm similarity index 85% rename from lib/DBIx/Class/DeploymentHandler/DatabaseToSchemaVersions.pm rename to lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm index eb7063f..4adc416 100644 --- a/lib/DBIx/Class/DeploymentHandler/DatabaseToSchemaVersions.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm @@ -1,4 +1,4 @@ -package DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions; +package DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions; use Moose; use Method::Signatures::Simple; diff --git a/lib/DBIx/Class/DeploymentHandler/ExplicitVersions.pm b/lib/DBIx/Class/DeploymentHandler/VersionHandler/ExplicitVersions.pm similarity index 95% rename from lib/DBIx/Class/DeploymentHandler/ExplicitVersions.pm rename to lib/DBIx/Class/DeploymentHandler/VersionHandler/ExplicitVersions.pm index f9e4f64..6566de7 100644 --- a/lib/DBIx/Class/DeploymentHandler/ExplicitVersions.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionHandler/ExplicitVersions.pm @@ -1,4 +1,4 @@ -package DBIx::Class::DeploymentHandler::ExplicitVersions; +package DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions; use Moose; use Method::Signatures::Simple; use Carp 'croak'; diff --git a/lib/DBIx/Class/DeploymentHandler/WithDatabaseToSchemaVersions.pm b/lib/DBIx/Class/DeploymentHandler/WithDatabaseToSchemaVersions.pm index 9fcf439..e72c133 100644 --- a/lib/DBIx/Class/DeploymentHandler/WithDatabaseToSchemaVersions.pm +++ b/lib/DBIx/Class/DeploymentHandler/WithDatabaseToSchemaVersions.pm @@ -1,7 +1,7 @@ package DBIx::Class::DeploymentHandler::WithDatabaseToSchemaVersions; use Moose::Role; -use DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions; +use DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions; use Carp 'carp'; @@ -20,7 +20,7 @@ sub _build_version_handler { }; $args->{to_version} = $self->to_version if $self->has_to_version; - DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new($args); + DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new($args); } 1; diff --git a/t/03_explict_versions.t b/t/03_explict_versions.t index d5aa657..d6232f9 100644 --- a/t/03_explict_versions.t +++ b/t/03_explict_versions.t @@ -6,7 +6,7 @@ use Test::Exception; use lib 't/lib'; use DBICTest; use DBIx::Class::DeploymentHandler; -use DBIx::Class::DeploymentHandler::ExplicitVersions; +use DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions; my $db = 'dbi:SQLite:db.db'; my @connection = ($db, '', '', { ignore_version => 1 }); my $sql_dir = 't/sql'; @@ -36,7 +36,7 @@ $handler->install; my $versions = [map "$_.0", 0..100]; { - my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({ schema => $s, ordered_versions => $versions, to_version => '1.0', @@ -48,7 +48,7 @@ my $versions = [map "$_.0", 0..100]; } { - my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({ schema => $s, ordered_versions => $versions, to_version => '5.0', @@ -64,7 +64,7 @@ my $versions = [map "$_.0", 0..100]; } dies_ok { - my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({ schema => $s, ordered_versions => $versions, to_version => '0.0', diff --git a/t/04_db_schema_versions.t b/t/04_db_schema_versions.t index 7c6ec46..2510ed6 100644 --- a/t/04_db_schema_versions.t +++ b/t/04_db_schema_versions.t @@ -6,7 +6,7 @@ use Test::Exception; use lib 't/lib'; use DBICTest; use DBIx::Class::DeploymentHandler; -use DBIx::Class::DeploymentHandler::ExplicitVersions; +use DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions; my $db = 'dbi:SQLite:db.db'; my @connection = ($db, '', '', { ignore_version => 1 }); my $sql_dir = 't/sql'; @@ -33,7 +33,7 @@ $handler->prepare_install(); $handler->install; { - my $vh = DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new({ schema => $s, ordered_versions => $versions, to_version => '5.0', @@ -46,7 +46,7 @@ $handler->install; } { - my $vh = DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new({ schema => $s, ordered_versions => $versions, }); @@ -56,7 +56,7 @@ $handler->install; } { - my $vh = DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new({ schema => $s, ordered_versions => $versions, }); @@ -68,7 +68,7 @@ $handler->install; { $DBICVersion::Schema::VERSION = '10.0'; - my $vh = DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new({ schema => $s, ordered_versions => $versions, });