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

* Alerting: Change settings column type to mediumtext

* Remove unnecessary newline
This commit is contained in:
Sofia Papagiannaki 2020-07-24 08:40:06 +03:00 committed by GitHub
parent 1df4f71197
commit ad4f8b7091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;"))
}