Revert "[release-11.6.0] Alerting: Add an index to alert_rule_versiontable on (rule_org_id, rule_uid) (#102353)" (#102367)

Revert "[release-11.6.0] Alerting: Add an index to alert_rule_version table on (rule_org_id, rule_uid) (#102353)"

This reverts commit c3a547e1c9.
This commit is contained in:
Alexander Akhmetov
2025-03-18 14:40:34 +01:00
committed by GitHub
parent 22b3ab8175
commit 07698ebbaa
2 changed files with 0 additions and 17 deletions
@@ -147,6 +147,4 @@ func (oss *OSSMigrations) AddMigration(mg *Migrator) {
ualert.AddAlertRuleStateTable(mg)
ualert.AddAlertRuleGuidMigration(mg)
ualert.AddAlertRuleVersionUIDIndex(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},
),
)
}