mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Increase alertmanager_conf column size if mysql (#35657)
fixes #35583
This commit is contained in:
@@ -261,4 +261,7 @@ func AddAlertmanagerConfigMigrations(mg *migrator.Migrator) {
|
||||
mg.AddMigration("Add column default in alert_configuration", migrator.NewAddColumnMigration(alertConfiguration, &migrator.Column{
|
||||
Name: "default", Type: migrator.DB_Bool, Nullable: false, Default: "0",
|
||||
}))
|
||||
|
||||
mg.AddMigration("alert alert_configuration alertmanager_configuration column from TEXT to MEDIUMTEXT if mysql", migrator.NewRawSQLMigration("").
|
||||
Mysql("ALTER TABLE alert_configuration MODIFY alertmanager_configuration MEDIUMTEXT;"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user