From 55682dc7a90fc9e880629aa4be46120a7e6aa4ad Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Mon, 25 Aug 2014 14:04:25 -0400 Subject: [PATCH] Bugfix in Airtime 2.5.3 upgrader class --- airtime_mvc/application/upgrade/Upgrades.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/upgrade/Upgrades.php b/airtime_mvc/application/upgrade/Upgrades.php index 729c809dd..c371e0461 100644 --- a/airtime_mvc/application/upgrade/Upgrades.php +++ b/airtime_mvc/application/upgrade/Upgrades.php @@ -106,7 +106,7 @@ class AirtimeUpgrader253 extends AirtimeUpgrader $database = $values['database']['dbname']; $dir = __DIR__; - passthru("export PGPASSWORD=$password && psql -h $host -U $username -q -f $dir/upgrade_sql/airtime_$airtime_upgrade_version/upgrade.sql $database 2>&1 | grep -v \"will create implicit index\""); + passthru("export PGPASSWORD=$password && psql -h $host -U $username -q -f $dir/upgrade_sql/airtime_".$this->getNewVersion()."/upgrade.sql $database 2>&1 | grep -v \"will create implicit index\""); Application_Model_Preference::SetAirtimeVersion($this->getNewVersion()); //clear out the cache