1 package DBIx::Class::DeploymentHandler::WithMonotonicVersions;
4 # ABSTRACT: Delegate/Role for DBIx::Class::DeploymentHandler::VersionHandler::Monotonic
6 use DBIx::Class::DeploymentHandler::VersionHandler::Monotonic;
8 has version_handler => (
11 does => 'DBIx::Class::DeploymentHandler::HandlesVersioning',
12 handles => 'DBIx::Class::DeploymentHandler::HandlesVersioning',
15 sub _build_version_handler {
19 database_version => $self->database_version,
20 schema_version => $self->schema_version,
23 $args->{to_version} = $self->to_version if $self->has_to_version;
24 DBIx::Class::DeploymentHandler::VersionHandler::Monotonic->new($args);
29 # vim: ts=2 sw=2 expandtab