handles => [qw( ddl_filename schema_version )],
);
-has upgrade_directory => (
+has upgrade_directory => ( # configuration
isa => 'Str',
is => 'ro',
required => 1,
default => 'sql',
);
-has backup_directory => (
+has backup_directory => ( # configuration
isa => 'Str',
is => 'ro',
predicate => 'has_backup_directory',
$s
}
-has do_backup => (
- isa => 'Bool',
- is => 'ro',
- default => undef,
-);
-
-has do_diff_on_init => (
+has do_backup => ( # configuration
isa => 'Bool',
is => 'ro',
default => undef,
$self->schema->resultset('__VERSION')
}
-has databases => (
+has databases => ( # configuration
coerce => 1,
isa => 'DBIx::Class::DeploymentHandler::Databases',
is => 'ro',
default => sub { [qw( MySQL SQLite PostgreSQL )] },
);
-has sqltargs => (
+has sqltargs => ( # configuration
isa => 'HashRef',
is => 'ro',
default => sub { {} },
}
$storage->_query_end($line);
};
- my @statements = $self->deployment_statements();
+ my @statements = $self->deployment_statements;
if (@statements > 1) {
foreach my $statement (@statements) {
$deploy->( $statement );
$new_version ||= $self->schema_version;
if ($new_version) {
- $self->deploy();
+ $self->deploy;
$self->version_rs->create({
version => $new_version,