X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler.pm;h=c22b6ab3df6cbcc17b527de6df84659e0d32fdcc;hb=e217d19c58c8beba917e751dd1089281fa1a74ee;hp=2acfa0d1474cbd789485ab9909478ec4071dc303;hpb=7521a845ba34a0063724e30987b6ab350d5942e5;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler.pm b/lib/DBIx/Class/DeploymentHandler.pm index 2acfa0d..c22b6ab 100644 --- a/lib/DBIx/Class/DeploymentHandler.pm +++ b/lib/DBIx/Class/DeploymentHandler.pm @@ -24,7 +24,6 @@ has schema => ( isa => 'DBIx::Class::Schema', is => 'ro', required => 1, - handles => [qw( ddl_filename schema_version )], ); has upgrade_directory => ( # configuration @@ -49,13 +48,15 @@ has do_backup => ( # configuration has version_rs => ( isa => 'DBIx::Class::ResultSet', is => 'ro', - lazy_build => 1, - handles => [qw( is_installed db_version )], + lazy_build => 1, # builder comes from another role... + # which is... probably not how we want it + handles => [qw( is_installed )], ); -has to_version => ( +has to_version => ( # configuration is => 'ro', - lazy_build => 1, + lazy_build => 1, # builder comes from another role... + # which is... probably not how we want it ); has databases => ( # configuration @@ -94,6 +95,8 @@ sub upgrade { } } +method backup { $self->storage->backup($self->backup_directory) } + __PACKAGE__->meta->make_immutable; 1;