-remove double quotes from sql statements
This commit is contained in:
parent
07afbc77ce
commit
30b0aa5d48
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue