);
method install {
- carp 'Install not possible as versions table already exists in database'
+ croak 'Install not possible as versions table already exists in database'
if $self->version_storage_is_installed;
my $ddl = $self->_deploy;
upgrade_directory => $sql_dir,
schema => $s,
databases => 'SQLite',
- sqltargs => { add_drop_table => 0 },
+ sqltargs => { add_drop_table => 0 },
});
ok($handler, 'DBIx::Class::DeploymentHandler w/1.0 instantiates correctly');
})
} 'schema not deployed';
$handler->install;
+ dies_ok {
+ $handler->install;
+ } 'cannot install twice';
lives_ok {
$s->resultset('Foo')->create({
bar => 'frew',