Alerting: Change settings column type to mediumtext (#26549)

* Alerting: Change settings column type to mediumtext

* Remove unnecessary newline
pull/26574/head
Sofia Papagiannaki 5 years ago committed by GitHub
parent 1df4f71197
commit ad4f8b7091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/services/sqlstore/migrations/alert_mig.go

@ -171,4 +171,8 @@ func addAlertMigrations(mg *Migrator) {
mg.AddMigration("Add column secure_settings in alert_notification", NewAddColumnMigration(alert_notification, &Column{
Name: "secure_settings", Type: DB_Text, Nullable: true,
}))
// change column type of alert.settings
mg.AddMigration("alter alert.settings to mediumtext", NewRawSqlMigration("").
Mysql("ALTER TABLE alert MODIFY settings MEDIUMTEXT;"))
}

Loading…
Cancel
Save