mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 08:22:20 +08:00
Alerting: Change rule migration to be based on feature flag (#33792)
makes it so the feature flag can be turned on off, and the migration will be cleared and rerun. All existing NG alert rules, configuration settings, etc are removed when disabling the feature flag. for https://github.com/grafana/alerting-squad/issues/142 Co-authored-by: Sofia Papagiannaki <sofia@grafana.com>
This commit is contained in:
@ -85,7 +85,7 @@ func (ss *SQLStore) Init() error {
|
||||
dialect = ss.Dialect
|
||||
|
||||
if !ss.dbCfg.SkipMigrations {
|
||||
migrator := migrator.NewMigrator(ss.engine)
|
||||
migrator := migrator.NewMigrator(ss.engine, ss.Cfg)
|
||||
migrations.AddMigrations(migrator)
|
||||
|
||||
for _, descriptor := range registry.GetServices() {
|
||||
|
Reference in New Issue
Block a user