rename db management scripts

This commit is contained in:
Oliver Gorwits
2012-12-16 16:44:28 +00:00
parent 31f57cc71d
commit 369a235ff8
3 changed files with 45 additions and 39 deletions

View File

@@ -20,11 +20,11 @@ sub worker_begin {
$dbh->selectrow_arrayref("SELECT * FROM admin WHERE 0 = 1");
});
}
catch { $daemon->deploy };
catch { $daemon->txn_do( $daemon->deploy ) };
$daemon->storage->disconnect;
if ($daemon->get_db_version < $daemon->schema_version) {
$daemon->upgrade;
$daemon->txn_do( $daemon->upgrade );
}
# on start, any jobs previously grabbed by a daemon on this host