1 package DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions;
4 # ABSTRACT: Go straight from Database to Schema version
6 with 'DBIx::Class::DeploymentHandler::HandlesVersioning';
8 has schema_version => (
14 has database_version => (
20 has to_version => ( # configuration
26 sub _build_to_version { $_[0]->schema_version }
34 sub next_version_set {
39 $self->once(!$self->once);
41 if $self->database_version eq $self->to_version;
42 return [$self->database_version, $self->to_version];
45 sub previous_version_set {
50 $self->once(!$self->once);
52 if $self->database_version eq $self->to_version;
53 return [$self->database_version, $self->to_version];
57 __PACKAGE__->meta->make_immutable;
61 # vim: ts=2 sw=2 expandtab
67 This class is an implementation of
68 L<DBIx::Class::DeploymentHandler::HandlesVersioning>. Pretty much all the
69 documentation is there.