upgrade
This commit is contained in:
@@ -118,15 +118,7 @@ final class SchemaManager
|
||||
|
||||
public function schemaStatus(): array
|
||||
{
|
||||
$requiredTables = [
|
||||
$this->prefix . 'projects',
|
||||
$this->prefix . 'currencies',
|
||||
$this->prefix . 'settings',
|
||||
$this->prefix . 'cost_plans',
|
||||
$this->prefix . 'measurements',
|
||||
$this->prefix . 'targets',
|
||||
$this->prefix . 'dashboard_definitions',
|
||||
];
|
||||
$requiredTables = $this->knownTablesInCreateOrder();
|
||||
|
||||
$presentTables = $this->existingTables($requiredTables);
|
||||
$missingTables = array_values(array_diff($requiredTables, $presentTables));
|
||||
@@ -1259,7 +1251,26 @@ final class SchemaManager
|
||||
|
||||
private function knownTablesInDropOrder(): array
|
||||
{
|
||||
$allTables = array_merge($this->coreTables(), $this->extraTables());
|
||||
return array_reverse($allTables);
|
||||
return array_reverse($this->knownTablesInCreateOrder());
|
||||
}
|
||||
|
||||
private function knownTablesInCreateOrder(): array
|
||||
{
|
||||
return [
|
||||
$this->prefix . 'projects',
|
||||
$this->prefix . 'currencies',
|
||||
$this->prefix . 'currency_aliases',
|
||||
$this->prefix . 'settings',
|
||||
$this->prefix . 'cost_plans',
|
||||
$this->prefix . 'measurements',
|
||||
$this->prefix . 'measurement_rates',
|
||||
$this->prefix . 'payouts',
|
||||
$this->prefix . 'miner_offers',
|
||||
$this->prefix . 'targets',
|
||||
$this->prefix . 'dashboard_definitions',
|
||||
$this->prefix . 'purchased_miners',
|
||||
$this->prefix . 'fx_fetches',
|
||||
$this->prefix . 'fx_rates',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user