Alerting: Keep track of individual org migration status (#78369)

* Alerting: Keep track of individual org migration status

Save migration status per migrated org.

Change the meaning (and key/value) of the org_id=0 entry 
to store the current (previous) config value used by alerting. 
This is so we can know when to upgrade/downgrade by 
comparing with the new config value in 
UnifiedAlerting.IsEnabled.
This commit is contained in:
Matthew Jacobson
2023-11-30 10:25:59 -05:00
committed by GitHub
parent 329d0e79ec
commit cdad712547
7 changed files with 452 additions and 179 deletions
@@ -111,6 +111,8 @@ func (*OSSMigrations) AddMigration(mg *Migrator) {
dashboardFolderMigrations.AddDashboardFolderMigrations(mg)
ssosettings.AddMigration(mg)
ualert.CreateOrgMigratedKVStoreEntries(mg)
}
func addStarMigrations(mg *Migrator) {