X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FVersionHandler%2FDatabaseToSchemaVersions.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FVersionHandler%2FDatabaseToSchemaVersions.pm;h=7be88f4cc68179a97794395dd2961295e6a6960d;hb=b539a2166a39a25bb3d1d91b47909500b55b3ee6;hp=c02d52f99d7b0acb53fd5911864a14eeb8c2c968;hpb=d53e0bfc728d1d5551bbbe840a4c761ef3e33a60;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm b/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm index c02d52f..7be88f4 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm @@ -4,6 +4,26 @@ use Method::Signatures::Simple; with 'DBIx::Class::DeploymentHandler::HandlesVersioning'; +has schema_version => ( + isa => 'Str', + is => 'ro', + required => 1, +); + +has database_version => ( + isa => 'Str', + is => 'ro', + required => 1, +); + +has to_version => ( # configuration + is => 'ro', + lazy_build => 1, # builder comes from another role... + # which is... probably not how we want it +); + +sub _build_to_version { $_[0]->schema_version } + has once => ( is => 'rw', isa => 'Bool',