Upgrade step from 2.5.1 installs

This commit is contained in:
Duncan Sommerville 2015-01-16 09:32:55 -05:00
parent 36c889a3a2
commit 04a1d82172
1 changed files with 0 additions and 4 deletions

View File

@ -80,10 +80,6 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
protected function _initUpgrade() { protected function _initUpgrade() {
if (AIRTIME_CODE_VERSION > Application_Model_Preference::GetAirtimeVersion()) { if (AIRTIME_CODE_VERSION > Application_Model_Preference::GetAirtimeVersion()) {
// This line is actually fairly important (incidentally) because it
// instantiates the logger singleton, which in turn decides the Airtime PHP error policy,
// otherwise we would trip up on the '#' characters in airtime.conf
Logging::info("Checking if upgrade is needed...");
$upgradeManager = new UpgradeManager(); $upgradeManager = new UpgradeManager();
$upgradeManager->runUpgrades(array(new AirtimeUpgrader252()), (__DIR__ . "/controllers")); $upgradeManager->runUpgrades(array(new AirtimeUpgrader252()), (__DIR__ . "/controllers"));
} }