add abstracts
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / WithExplicitVersions.pm
CommitLineData
fe3b6dff 1package DBIx::Class::DeploymentHandler::WithExplicitVersions;
2use Moose::Role;
3
9deabd1f 4# ABSTRACT: Delegate/Role for DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions
5
fe3b6dff 6use DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions;
7
8use Carp 'carp';
9
10has version_handler => (
11 is => 'ro',
12 lazy_build => 1,
13 does => 'DBIx::Class::DeploymentHandler::HandlesVersioning',
14 handles => 'DBIx::Class::DeploymentHandler::HandlesVersioning',
15);
16
17sub _build_version_handler {
18 my $self = shift;
19
20 my $args = {
21 database_version => $self->database_version,
22 schema_version => $self->schema_version,
23 };
24
25 $args->{to_version} = $self->to_version if $self->has_to_version;
26 DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new($args);
27}
28
291;
30
e52174e3 31# vim: ts=2 sw=2 expandtab
32
fe3b6dff 33__END__
34