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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue