X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FHandlesDeploy.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FHandlesDeploy.pm;h=ecb42f4c2816c5e8e03271a237a8ad052307df96;hb=e3776e58116478955833a6faacaac644ece4cdb9;hp=835459476b63b988ed987e4e7475d7aa45a5be8d;hpb=e52174e31b95fe335f6ab8cfdbf23cc2a0c05673;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/HandlesDeploy.pm b/lib/DBIx/Class/DeploymentHandler/HandlesDeploy.pm index 8354594..ecb42f4 100644 --- a/lib/DBIx/Class/DeploymentHandler/HandlesDeploy.pm +++ b/lib/DBIx/Class/DeploymentHandler/HandlesDeploy.pm @@ -16,11 +16,13 @@ requires 'deploy'; __END__ -# should this be renamed prepare_deploy? - =method prepare_install - $deploy_method->prepare_install; + (should this be renamed prepare_deploy?) + + $dh->prepare_install + +Generate the needed data files to install the schema to the database. =method deploy @@ -30,21 +32,21 @@ Deploy the schema to the database. =method prepare_resultsource_install - $deploy_method->prepare_resultsource_install($resultset->result_source); + $dh->prepare_resultsource_install($resultset->result_source) Takes a L and generates a single migration file to create the resultsource's table. =method install_resultsource - $deploy_method->prepare_resultsource_install($resultset->result_source); + $dh->prepare_resultsource_install($resultset->result_source); Takes a L and runs a single migration file to deploy the resultsource's table. =method prepare_upgrade - $deploy_method->prepare_upgrade(1, 2, [1, 2]); + $dh->prepare_upgrade(1, 2, [1, 2]); Takes two versions and a version set. This basically is supposed to generate the needed C to migrate up from the first version to the second version. @@ -52,7 +54,7 @@ The version set uniquely identifies the migration. =method prepare_downgrade - $deploy_method->prepare_downgrade(2, 1, [1, 2]); + $dh->prepare_downgrade(2, 1, [1, 2]); Takes two versions and a version set. This basically is supposed to generate the needed C to migrate down from the first version to the second version.