CC-3683: Upgraded database not equivalent to fresh install database part 1
-hide useless "NOTICE" statements
This commit is contained in:
parent
bc8cdc8a2d
commit
5aea66a5c4
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ class AirtimeDatabaseUpgrade{
|
|||
echo "* Updating Database".PHP_EOL;
|
||||
self::task0($p_dbValues);
|
||||
self::task1();
|
||||
echo " * Complete".PHP_EOL;
|
||||
}
|
||||
|
||||
private static function task0($p_dbValues){
|
||||
|
@ -20,7 +21,7 @@ class AirtimeDatabaseUpgrade{
|
|||
$database = $p_dbValues['database']['dbname'];
|
||||
$dir = __DIR__;
|
||||
|
||||
passthru("export PGPASSWORD=$password && psql -h $host -U $username -q -f $dir/data/upgrade.sql $database");
|
||||
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')";
|
||||
UpgradeCommon::queryDb($sql);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue