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%2FSchemaLoader.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FProvideSchema%2FSchemaLoader.pm;h=ff64d7ea3b5cf6d252de4bd6c2c0a04cc8200846;hp=b8ac00fee7c02f63e2b6669faaec73f014d5c205;hb=41a539b4f7147fb311409eb99ddd3a71f5787bbe;hpb=7d876442f151bedf8bcf7d594f30d58f6dad8b59 diff --git a/lib/DBIx/Class/DeploymentHandler/ProvideSchema/SchemaLoader.pm b/lib/DBIx/Class/DeploymentHandler/MigrationSchema/SchemaLoader.pm similarity index 76% rename from lib/DBIx/Class/DeploymentHandler/ProvideSchema/SchemaLoader.pm rename to lib/DBIx/Class/DeploymentHandler/MigrationSchema/SchemaLoader.pm index b8ac00f..ff64d7e 100644 --- a/lib/DBIx/Class/DeploymentHandler/ProvideSchema/SchemaLoader.pm +++ b/lib/DBIx/Class/DeploymentHandler/MigrationSchema/SchemaLoader.pm @@ -1,9 +1,9 @@ -package DBIx::Class::DeploymentHandler::ProvideSchema::SchemaLoader; +package DBIx::Class::DeploymentHandler::MigrationSchema::SchemaLoader; use Moose; use DBIx::Class::Schema::Loader; -with 'DBIx::Class::DeploymentHandler::HandlesProvideSchema'; +with 'DBIx::Class::DeploymentHandler::HandlesMigrationSchema'; has schema => (is=>'ro', required=>1); @@ -27,9 +27,9 @@ sub migration_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 reverse engineer a C<$schema> from whatever is currently deployed