Alerting: Store alertmanager configuration history in a separate table in the database (#60492)
* Update config store to split between active and history tables * Migrations to fix up indexes * Implement migration from old format to new * Move add migrations call * Delete duplicated rows * Explicitly map fields * Quote the column name because it's a reserved word * Lift migrations to top * Use XORM for nearly everything, avoid any non trivial raw SQL * Touch up indexes and zero out IDs on move * Drop TODO that's already completed * Fix assignment of IDs
This commit is contained in:
@@ -35,6 +35,7 @@ func AddTablesMigrations(mg *migrator.Migrator) {
|
||||
AddAlertImageMigrations(mg)
|
||||
|
||||
AddAlertmanagerConfigHistoryMigrations(mg)
|
||||
ExtractAlertmanagerConfigurationHistoryMigration(mg)
|
||||
}
|
||||
|
||||
// AddAlertDefinitionMigrations should not be modified.
|
||||
|
||||
Reference in New Issue
Block a user