incorrect sql statements
This commit is contained in:
parent
0991b00c55
commit
c91f1cc0c9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue