diff --git a/pkg/services/sqlstore/migrations/annotation_mig.go b/pkg/services/sqlstore/migrations/annotation_mig.go index 3ec5df841ed..fb7fe9f5573 100644 --- a/pkg/services/sqlstore/migrations/annotation_mig.go +++ b/pkg/services/sqlstore/migrations/annotation_mig.go @@ -145,6 +145,10 @@ func addAnnotationMig(mg *Migrator) { mg.AddMigration("Remove index org_id_epoch_epoch_end from annotation table", NewDropIndexMigration(table, &Index{ Cols: []string{"org_id", "epoch", "epoch_end"}, Type: IndexType, })) + + mg.AddMigration("Add index for alert_id on annotation table", NewAddIndexMigration(table, &Index{ + Cols: []string{"alert_id"}, Type: IndexType, + })) } type AddMakeRegionSingleRowMigration struct {