Revert "Alerting: Add an index to alert_rule_version table on (rule_org_id, rule_uid) (#102347)" (#102368)

This reverts commit 9491fa1895.
This commit is contained in:
Alexander Akhmetov
2025-03-18 14:54:45 +01:00
committed by GitHub
parent 7a01d39025
commit 04f20127a2
2 changed files with 0 additions and 17 deletions
@@ -152,7 +152,5 @@ func (oss *OSSMigrations) AddMigration(mg *Migrator) {
ualert.AddAlertRuleMissingSeriesEvalsToResolve(mg)
ualert.AddAlertRuleVersionUIDIndex(mg)
accesscontrol.AddDatasourceDrilldownRemovalMigration(mg)
}
@@ -1,15 +0,0 @@
package ualert
import (
"github.com/grafana/grafana/pkg/services/sqlstore/migrator"
)
// AddAlertRuleVersionUIDIndex adds an index to the alert_rule_version table on (rule_org_id, rule_uid) columns.
func AddAlertRuleVersionUIDIndex(mg *migrator.Migrator) {
mg.AddMigration("add index to alert_rule_version table on (rule_org_id, rule_uid)",
migrator.NewAddIndexMigration(
migrator.Table{Name: "alert_rule_version"},
&migrator.Index{Cols: []string{"rule_org_id", "rule_uid"}, Type: migrator.IndexType},
),
)
}