if (-d $main) {
$dir = catfile($main, $prefix, join q(-), @{$versions})
} else {
- croak "$main does not exist; please write/generate some SQL";
+ if ($self->ignore_ddl) {
+ return []
+ } else {
+ croak "$main does not exist; please write/generate some SQL"
+ }
}
my %files;
ignore_ddl => 1,
script_directory => $sql_dir,
schema => $s,
- databases => 'SQLite',
+ databases => [],
sql_translator_args => { add_drop_table => 0 },
});
ignore_ddl => 1,
script_directory => $sql_dir,
schema => $s,
- databases => 'SQLite',
+ databases => [],
});
ok($handler, 'DBIx::Class::DeploymentHandler w/2 instantiates correctly');
ignore_ddl => 1,
script_directory => $sql_dir,
schema => $s,
- databases => 'SQLite',
+ databases => [],
});
ok($handler, 'DBIx::Class::DeploymentHandler w/3 instantiates correctly');
ignore_ddl => 1,
script_directory => $sql_dir,
schema => $s,
- databases => 'SQLite',
+ databases => [],
});
ok($handler, 'DBIx::Class::DeploymentHandler w/2 instantiates correctly');