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:
@@ -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},
|
||||
),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user