require DBIx::Class::ResultSet; # loaded for type constraint
use Carp::Clan '^DBIx::Class::DeploymentHandler';
+use DBIx::Class::DeploymentHandler::Types;
with 'DBIx::Class::DeploymentHandler::WithSqltDeployMethod',
'DBIx::Class::DeploymentHandler::WithDatabaseToSchemaVersions',
'DBIx::Class::DeploymentHandler::WithStandardVersionStorage';
-BEGIN {
- use Moose::Util::TypeConstraints;
- subtype 'DBIx::Class::DeploymentHandler::Databases'
- => as 'ArrayRef[Str]';
-
- coerce 'DBIx::Class::DeploymentHandler::Databases'
- => from 'Str'
- => via { [$_] };
- no Moose::Util::TypeConstraints;
-}
has schema => (
isa => 'DBIx::Class::Schema',
--- /dev/null
+package DBIx::Class::DeploymentHandler::Types;
+use strict;
+use warnings;
+
+use Moose::Util::TypeConstraints;
+subtype 'DBIx::Class::DeploymentHandler::Databases'
+ => as 'ArrayRef[Str]';
+
+coerce 'DBIx::Class::DeploymentHandler::Databases'
+ => from 'Str'
+ => via { [$_] };
+no Moose::Util::TypeConstraints;
+
+1;