-
Notifications
You must be signed in to change notification settings - Fork 502
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
Showing
2 changed files
with
7 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters