function upgrade()
{
$installer = new Upgrade(array());
$installer->setLogger($this);
if ($installer->execute()) {
if (count($installer->getNotes()) > 0) {
printf("\nRelease Notes\n");
printf("----------------------------------------\n");
foreach ($installer->getNotes() as $note) {
printf("%s\n\n", $note);
}
}
$newVersion =& $installer->getNewVersion();
printf("Successfully upgraded to version %s\n", $newVersion->getVersionString(false));
} else {
printf("ERROR: Upgrade failed: %s\n", $installer->getErrorString());
}
}