Merge pull request #56 from radiorabe/feature/version-reporting

Harmonize version reporting in ui and api
This commit is contained in:
Robb 2017-03-11 19:06:28 -05:00 committed by GitHub
commit ff83784864
8 changed files with 23 additions and 31 deletions

View file

@ -29,8 +29,9 @@ class UpgradeManager
*/
public static function getSupportedSchemaVersions()
{
$config = Config::getConfig();
//What versions of the schema does the code support today:
return array(AIRTIME_CODE_VERSION);
return array($config['airtime_version']);
}
public static function checkIfUpgradeIsNeeded()
@ -269,7 +270,6 @@ class AirtimeUpgrader253 extends AirtimeUpgrader
Application_Model_Preference::setDiskUsage($diskUsage);
//update system_version in cc_pref and change some columns in cc_files
parent::_runUpgrade();
}
}