From 47215eb54129dc8639bc69de4dcc116d544bb2a4 Mon Sep 17 00:00:00 2001 From: drigato Date: Wed, 9 Apr 2014 15:04:15 -0400 Subject: [PATCH] CC-5781: Upgrade script for new storage quota implementation Removing scripts from public folder (was only there for testing) --- airtime_mvc/public/DbUpgrade.php | 24 ------------------- airtime_mvc/public/StorageQuotaUpgrade.php | 27 ---------------------- airtime_mvc/public/airtime-upgrade.php | 16 ------------- airtime_mvc/public/data/upgrade.sql | 6 ----- 4 files changed, 73 deletions(-) delete mode 100644 airtime_mvc/public/DbUpgrade.php delete mode 100644 airtime_mvc/public/StorageQuotaUpgrade.php delete mode 100644 airtime_mvc/public/airtime-upgrade.php delete mode 100644 airtime_mvc/public/data/upgrade.sql diff --git a/airtime_mvc/public/DbUpgrade.php b/airtime_mvc/public/DbUpgrade.php deleted file mode 100644 index dbfef98c5..000000000 --- a/airtime_mvc/public/DbUpgrade.php +++ /dev/null @@ -1,24 +0,0 @@ -&1 | grep -v \"will create implicit index\""); - } -} diff --git a/airtime_mvc/public/StorageQuotaUpgrade.php b/airtime_mvc/public/StorageQuotaUpgrade.php deleted file mode 100644 index 595861087..000000000 --- a/airtime_mvc/public/StorageQuotaUpgrade.php +++ /dev/null @@ -1,27 +0,0 @@ -filterByType('stor') - ->filterByExists(true) - ->findOne(); - $storPath = $musicDir->getDirectory(); - - $f = $storPath; - $io = popen('/usr/bin/du -bs ' . $f, 'r'); - $size = fgets($io, 4096); - $size = substr($size, 0, strpos($size, "\t")); - pclose($io); - - Application_Model_Preference::setDiskUsage($size); - } -} diff --git a/airtime_mvc/public/airtime-upgrade.php b/airtime_mvc/public/airtime-upgrade.php deleted file mode 100644 index ef10d54de..000000000 --- a/airtime_mvc/public/airtime-upgrade.php +++ /dev/null @@ -1,16 +0,0 @@ -