incorrect sql statements

This commit is contained in:
Martin Konecny 2012-05-17 13:12:13 -04:00
parent 0991b00c55
commit c91f1cc0c9

View file

@ -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\""); 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); 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); UpgradeCommon::queryDb($log_sql);
} }