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