CC-5781: Upgrade script for new storage quota implementation
Created skeleton for upgrade script
This commit is contained in:
parent
b02dc45a53
commit
a756b6a9e4
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
class StorageQuotaUpgrade
|
||||||
|
{
|
||||||
|
public static function startUpgrade()
|
||||||
|
{
|
||||||
|
echo "* Updating storage usage for new quota tracking".PHP_EOL;
|
||||||
|
self::setStorageUsage();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static function setStorageUsage()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,8 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'DbUpgrade.php';
|
require_once 'DbUpgrade.php';
|
||||||
|
require_once 'StorageQuotaUpgrade.php';
|
||||||
|
|
||||||
$filename = "/etc/airtime/airtime.conf";
|
$filename = "/etc/airtime/airtime.conf";
|
||||||
$values = parse_ini_file($filename, true);
|
$values = parse_ini_file($filename, true);
|
||||||
|
|
||||||
AirtimeDatabaseUpgrade::start($values);
|
AirtimeDatabaseUpgrade::start($values);
|
||||||
|
StorageQuotaUpgrade::startUpgrade();
|
||||||
|
|
Loading…
Reference in New Issue