-package DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions;
+package DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions;
use Moose;
use Method::Signatures::Simple;
-package DBIx::Class::DeploymentHandler::ExplicitVersions;
+package DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions;
use Moose;
use Method::Signatures::Simple;
use Carp 'croak';
package DBIx::Class::DeploymentHandler::WithDatabaseToSchemaVersions;
use Moose::Role;
-use DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions;
+use DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions;
use Carp 'carp';
};
$args->{to_version} = $self->to_version if $self->has_to_version;
- DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new($args);
+ DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new($args);
}
1;
use lib 't/lib';
use DBICTest;
use DBIx::Class::DeploymentHandler;
-use DBIx::Class::DeploymentHandler::ExplicitVersions;
+use DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions;
my $db = 'dbi:SQLite:db.db';
my @connection = ($db, '', '', { ignore_version => 1 });
my $sql_dir = 't/sql';
my $versions = [map "$_.0", 0..100];
{
- my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({
+ my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({
schema => $s,
ordered_versions => $versions,
to_version => '1.0',
}
{
- my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({
+ my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({
schema => $s,
ordered_versions => $versions,
to_version => '5.0',
}
dies_ok {
- my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({
+ my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({
schema => $s,
ordered_versions => $versions,
to_version => '0.0',
use lib 't/lib';
use DBICTest;
use DBIx::Class::DeploymentHandler;
-use DBIx::Class::DeploymentHandler::ExplicitVersions;
+use DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions;
my $db = 'dbi:SQLite:db.db';
my @connection = ($db, '', '', { ignore_version => 1 });
my $sql_dir = 't/sql';
$handler->install;
{
- my $vh = DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new({
+ my $vh = DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new({
schema => $s,
ordered_versions => $versions,
to_version => '5.0',
}
{
- my $vh = DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new({
+ my $vh = DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new({
schema => $s,
ordered_versions => $versions,
});
}
{
- my $vh = DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new({
+ my $vh = DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new({
schema => $s,
ordered_versions => $versions,
});
{
$DBICVersion::Schema::VERSION = '10.0';
- my $vh = DBIx::Class::DeploymentHandler::DatabaseToSchemaVersions->new({
+ my $vh = DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions->new({
schema => $s,
ordered_versions => $versions,
});