upgrade
All checks were successful
Deploy / deploy-staging (push) Successful in 5s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-11 02:29:37 +02:00
parent ea1bdd75ad
commit dc4abe9563
4 changed files with 85 additions and 74 deletions

View File

@@ -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',
];
}
}