CC-3732: NationTalk Database upgrade fail, from 2.0.3 to 2.1.0
-fixed
This commit is contained in:
parent
81d7e0c80f
commit
80898ec898
181 changed files with 72643 additions and 58 deletions
|
@ -20,7 +20,7 @@ class UpgradeCommon{
|
|||
$sql = "SELECT valstr from cc_pref WHERE keystr = 'timezone'";
|
||||
|
||||
$result = self::queryDb($sql);
|
||||
$timezone = $result['valstr'];
|
||||
$timezone = $result->fetchColumn();
|
||||
|
||||
date_default_timezone_set($timezone);
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ class UpgradeCommon{
|
|||
$con = Propel::getConnection();
|
||||
|
||||
try {
|
||||
$result = $con->exec($p_sql);
|
||||
$result = $con->query($p_sql);
|
||||
} catch (Exception $e) {
|
||||
echo "Error executing $p_sql. Exiting.";
|
||||
exit(1);
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
set_include_path(__DIR__.'/../../../airtime_mvc/library' . PATH_SEPARATOR . get_include_path());
|
||||
set_include_path(__DIR__.'/../../../airtime_mvc/application/models' . PATH_SEPARATOR . get_include_path());
|
||||
set_include_path(__DIR__.'/../../../airtime_mvc/application/configs' . PATH_SEPARATOR . get_include_path());
|
||||
require_once 'conf.php';
|
||||
//require_once 'conf.php';
|
||||
require_once 'propel/runtime/lib/Propel.php';
|
||||
Propel::init(__DIR__."/propel/airtime-conf.php");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue