Files
grafana/pkg/services/sqlstore/migrations/ualert/state_annotations_mig.go
T
Alexander Akhmetov c59d5d1c8e Alerting: Store instance annotations in alert rule state (#114975)
Alerting: Store annotations in alert instance state
2025-12-09 13:52:42 +01:00

13 lines
449 B
Go

package ualert
import "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
// AddStateAnnotationsColumn adds annotations column to alert_instance
func AddStateAnnotationsColumn(mg *migrator.Migrator) {
mg.AddMigration("add annotations column to alert_instance table", migrator.NewAddColumnMigration(migrator.Table{Name: "alert_instance"}, &migrator.Column{
Name: "annotations",
Type: migrator.DB_Text,
Nullable: true,
}))
}