Clear ngalert configuration table (#38940)

This commit is contained in:
Santiago 2021-09-08 10:48:50 -03:00 committed by GitHub
parent e639b220ce
commit ae9343f8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,6 +405,11 @@ func (m *rmMigration) Exec(sess *xorm.Session, mg *migrator.Migrator) error {
return err
}
_, err = sess.Exec("delete from ngalert_configuration")
if err != nil {
return err
}
_, err = sess.Exec("delete from alert_instance")
if err != nil {
return err