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