CC-3694: Upgrade fails with Propel database conversion.
-fixed
This commit is contained in:
parent
85bc150159
commit
2a9ea435f2
4 changed files with 20 additions and 6 deletions
|
@ -20,6 +20,7 @@ require_once(__DIR__.'/airtime-constants.php');
|
|||
require_once(__DIR__.'/AirtimeIni.php');
|
||||
require_once(__DIR__.'/AirtimeInstall.php');
|
||||
require_once 'propel/runtime/lib/Propel.php';
|
||||
Propel::init(AirtimeInstall::GetAirtimeSrcDir()."/application/configs/db-conf.php");
|
||||
Propel::init(AirtimeInstall::GetAirtimeSrcDir()."/application/configs/airtime-conf-production.php");
|
||||
|
||||
|
||||
|
@ -106,9 +107,6 @@ if (strcmp($version, "2.1.0") < 0){
|
|||
$sql = "DELETE FROM cc_pref WHERE keystr = 'system_version'";
|
||||
$con->exec($sql);
|
||||
|
||||
$values = parse_ini_file(CONF_FILE_AIRTIME, true);
|
||||
$phpDir = $values['general']['airtime_dir'];
|
||||
|
||||
$newVersion = AIRTIME_VERSION;
|
||||
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('system_version', '$newVersion')";
|
||||
$con->exec($sql);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue