From 30b0aa5d4813b22eb7279d4c44aff1397afed4fd Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 16 May 2012 15:39:05 -0400 Subject: [PATCH] -remove double quotes from sql statements --- install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php b/install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php index 211b2fba8..e8a6fe1df 100644 --- a/install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php +++ b/install_minimal/upgrades/airtime-2.1.0/DbUpgrade.php @@ -23,10 +23,10 @@ class AirtimeDatabaseUpgrade{ passthru("export PGPASSWORD=$password && psql -h $host -U $username -q -f $dir/data/upgrade.sql $database 2>&1 | grep -v \"will create implicit index\""); - $sql = "INSERT INTO cc_pref(\"keystr\", \"valstr\") VALUES('scheduled_play_switch', 'on')"; + $sql = "INSERT INTO cc_pref('keystr', 'valstr') VALUES('scheduled_play_switch', 'on')"; UpgradeCommon::queryDb($sql); - $log_sql = "INSERT INTO cc_live_log(\"state\", \"start_time\") VALUES('S', now() at time zone 'UTC')"; + $log_sql = "INSERT INTO cc_live_log('state', 'start_time') VALUES('S', now() at time zone 'UTC')"; UpgradeCommon::queryDb($log_sql); }