X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FMigrationSchema%2FFromCurrent.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FProvideSchema%2FFromCurrent.pm;h=422d41f40c89faff94cb0184039fc3befe179d97;hp=7129a25f6f9ad5201d917318c90faa8e0933b78a;hb=41a539b4f7147fb311409eb99ddd3a71f5787bbe;hpb=7d876442f151bedf8bcf7d594f30d58f6dad8b59 diff --git a/lib/DBIx/Class/DeploymentHandler/ProvideSchema/FromCurrent.pm b/lib/DBIx/Class/DeploymentHandler/MigrationSchema/FromCurrent.pm similarity index 62% rename from lib/DBIx/Class/DeploymentHandler/ProvideSchema/FromCurrent.pm rename to lib/DBIx/Class/DeploymentHandler/MigrationSchema/FromCurrent.pm index 7129a25..422d41f 100644 --- a/lib/DBIx/Class/DeploymentHandler/ProvideSchema/FromCurrent.pm +++ b/lib/DBIx/Class/DeploymentHandler/MigrationSchema/FromCurrent.pm @@ -1,7 +1,7 @@ -package DBIx::Class::DeploymentHandler::ProvideSchema::SQL::FromCurrent; +package DBIx::Class::DeploymentHandler::MigrationSchema::FromCurrent; use Moose; -with 'DBIx::Class::DeploymentHandler::HandlesProvideSchema'; +with 'DBIx::Class::DeploymentHandler::HandlesMigrationSchema'; has schema => (is=>'ro', required=>1); @@ -13,9 +13,9 @@ sub migration_schema { shift->schema } __END__ -=method schema_for_run_files +=method migration_schema - my $schema = $dh->schema_for_run_files; + my $schema = $dh->migration_schema; Provides a L object that we can pass to the Perl deploy scripts. We just return whatever C<$schema> you passed when you instantiated