1 package DBIx::Class::DeploymentHandler::HandlesDeploy;
4 requires 'prepare_install';
5 requires 'prepare_resultsource_install';
6 requires 'install_resultsource';
7 requires 'prepare_upgrade';
8 requires 'prepare_downgrade';
9 requires 'upgrade_single_step';
10 requires 'downgrade_single_step';
15 # should this be renamed prepare_deploy?
17 =method prepare_install
19 $deploy_method->prepare_install;
25 Deploy the schema to the database.
27 =method prepare_resultsource_install
29 $deploy_method->prepare_resultsource_install($resultset->result_source);
31 =method install_resultsource
33 $deploy_method->prepare_resultsource_install($resultset->result_source);
35 # for updates prepared automatically (rob's stuff)
36 # one would want to explicitly set $version_set to
39 =method prepare_upgrade
41 $deploy_method->prepare_upgrade(1, 2, [1, 2]);
43 # for updates prepared automatically (rob's stuff)
44 # one would want to explicitly set $version_set to
47 =method prepare_downgrade
49 $deploy_method->prepare_downgrade(2, 1, [1, 2]);
51 =method upgrade_single_step
53 my ($ddl, $sql) = @{$dh->upgrade_single_step($version_set)||[]}
55 call a single upgrade migration. Takes an arrayref describing the version to
56 upgrade to. Optionally return an arrayref containing C<$ddl> describing
57 version installed and C<$sql> used to get to that version.
59 =method downgrade_single_step
61 $dh->downgrade_single_step($version_set);
63 call a single downgrade migration. Takes an arrayref describing the version to
66 =head1 KNOWN IMPLEMENTATIONS
72 L<DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator>
76 L<DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated>
82 vim: ts=2 sw=2 expandtab