CC-3683: Upgraded database not equivalent to fresh install database part 1

-hide useless "NOTICE" statements
This commit is contained in:
Martin Konecny 2012-05-04 20:18:11 -04:00
parent bc8cdc8a2d
commit 5aea66a5c4

View file

@ -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);