sintonia/airtime_mvc/public/airtime-upgrade.php
drigato 661ab7f647 CC-5781: Upgrade script for new storage quota implementation
Copied upgrade files to public folder.
Seeing if we can execute the scripts with a URL
2014-04-09 12:32:20 -04:00

16 lines
496 B
PHP

<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
//include index.php so we can use propel classes
require_once APPLICATION_PATH.'/../public/index.php';
require_once 'DbUpgrade.php';
require_once 'StorageQuotaUpgrade.php';
$filename = "/etc/airtime/airtime.conf";
$values = parse_ini_file($filename, true);
AirtimeDatabaseUpgrade::start($values);
StorageQuotaUpgrade::startUpgrade();