feat(alerting): add feature toggles for alerting functions

This commit is contained in:
bergquist
2016-05-23 07:47:38 +02:00
parent 9d016a2756
commit 45b2b4bc52
2 changed files with 20 additions and 11 deletions

View File

@@ -1,8 +1,15 @@
package migrations
import . "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
import (
. "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
"github.com/grafana/grafana/pkg/setting"
)
func addAlertMigrations(mg *Migrator) {
if !setting.AlertingEnabled {
return
}
alertV1 := Table{
Name: "alert_rule",
Columns: []*Column{