isa => 'DBIx::Class::Schema',
is => 'ro',
required => 1,
- handles => ['schema_version'],
);
has backup_directory => (
sub _build_to_version { $_[0]->schema->schema_version }
+has schema_version => (
+ is => 'ro',
+ lazy_build => 1,
+);
+
+sub _build_schema_version { $_[0]->schema->schema_version }
+
method install {
croak 'Install not possible as versions table already exists in database'
if $self->version_storage_is_installed;