# ABSTRACT: Interface for deploy methods
-requires 'preinstall';
+requires 'initialize';
requires 'prepare_deploy';
requires 'deploy';
requires 'prepare_downgrade';
requires 'downgrade_single_step';
+requires 'txn_do';
+
1;
# vim: ts=2 sw=2 expandtab
__END__
-=method preinstall
+=method initialize
- $dh->preinstall({
+ $dh->initialize({
version => 1,
storage_type => 'SQLite'
});
Takes two versions and a version set. This basically is supposed to generate
the needed C<SQL> to migrate down from the first version to the second version.
-The version set uniquely identifies the migration and should match it's
+The version set uniquely identifies the migration and should match its
respective upgrade version set.
=method upgrade_single_step
that version of the schema and C<$upgrade_sql> is the SQL that was run to
upgrade the database.
+=method txn_do
+
+ $dh->txn_do(sub { ... })
+
+Wrap the passed coderef in a transaction (if transactions are enabled.)
+
=head1 KNOWN IMPLEMENTATIONS
=over