feat: replace php migration with django migration

- keep latest legacy version in initial migration file
- move propel schema to api legacy app
- remove legacy upgrade tool
This commit is contained in:
jo 2022-05-28 16:27:57 +02:00 committed by Kyle Robbertze
parent ee98387264
commit 0e4bc4cacd
85 changed files with 1005 additions and 1000 deletions

View file

@ -180,32 +180,6 @@ interface AirtimeTask
public function run();
}
/**
* Class UpgradeTask.
*
* Checks the current Airtime version and runs any outstanding upgrades
*/
class UpgradeTask implements AirtimeTask
{
/**
* Check the current Airtime schema version to see if an upgrade should be run.
*
* @return bool true if an upgrade is needed
*/
public function shouldBeRun()
{
return UpgradeManager::checkIfUpgradeIsNeeded();
}
/**
* Run all upgrades above the current schema version.
*/
public function run()
{
UpgradeManager::doUpgrade();
}
}
/**
* Class CeleryTask.
*