Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/horizon: Apply and check migrations on ingesting instances o…
…nly (#3586) This commit reverts 7c92b23 and changes the DB migrations behaviour to only trigger on ingesting instances. When checking if there are any migrations required Horizon calls `migrate.PlanMigration` which sends `CREATE TABLE gorp_migrations`. This write query is forbidden when using read only database (like replica). The new flag in 7c92b23 added unnecessary complexity. Ingesting instances are guaranteed to have write access to a DB. Thanks @jacekn for the idea!
- Loading branch information