1 package DBIx::Class::DeploymentHandler::VersionHandler::DatabaseToSchemaVersions;
5 # ABSTRACT: Go straight from Database to Schema version
7 with 'DBIx::Class::DeploymentHandler::HandlesVersioning';
9 has schema_version => (
15 has database_version => (
21 has to_version => ( # configuration
27 sub _build_to_version { $_[0]->schema_version }
35 sub next_version_set {
40 $self->once(!$self->once);
42 if $self->database_version eq $self->to_version;
43 return [$self->database_version, $self->to_version];
46 sub previous_version_set {
51 $self->once(!$self->once);
53 if $self->database_version eq $self->to_version;
54 return [$self->database_version, $self->to_version];
58 __PACKAGE__->meta->make_immutable;
62 # vim: ts=2 sw=2 expandtab
68 This class is an implementation of
69 L<DBIx::Class::DeploymentHandler::HandlesVersioning>. Pretty much all the
70 documentation is there.