mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
077_api_key_stream_default_mode.sql and 077_quota_pools.sql both claimed prefix 077, so getMigrationFiles() threw a version-collision error and getDbInstance() failed at every startup (app would not boot; all DB-touching unit tests were red on release/v3.8.8). Renumber the dependency-free, idempotent quota_pools migration 077 -> 085 (no other migration references quota_pools/quota_allocations), keep the non-idempotent api_key_stream_default_mode ALTER at 077, add a retroactive isSchemaAlreadyApplied guard (case 085) for DBs that already applied it under 077, and add a regression test enforcing unique migration prefixes.