let you install to a given point in the version history
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / Types.pm
CommitLineData
41863428 1package DBIx::Class::DeploymentHandler::Types;
2use strict;
3use warnings;
4
9deabd1f 5# ABSTRACT: Types internal to DBIx::Class::DeploymentHandler
6
41863428 7use Moose::Util::TypeConstraints;
8subtype 'DBIx::Class::DeploymentHandler::Databases'
9 => as 'ArrayRef[Str]';
10
11coerce 'DBIx::Class::DeploymentHandler::Databases'
12 => from 'Str'
13 => via { [$_] };
41863428 14
7ae4c207 15subtype 'StrSchemaVersion'
16 => as 'Str'
17 => message {
18 defined $_
19 ? "Schema version (currently '$_') must be a string"
20 : 'Schema version must be defined'
21 };
22
23no Moose::Util::TypeConstraints;
41863428 241;
e52174e3 25
26# vim: ts=2 sw=2 expandtab
27
28__END__
29