mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Annotation: Optionally allow storing longer annotation tags (#54754)
* Annotation: Optionally allow longer annotation tags * Do not accept configuration lower than today's default (500) * Apply suggestion from code review
This commit is contained in:
committed by
GitHub
parent
883c7a802b
commit
d0e7765c6a
@@ -178,6 +178,10 @@ func addAnnotationMig(mg *Migrator) {
|
||||
mg.AddMigration("Add index for alert_id on annotation table", NewAddIndexMigration(table, &Index{
|
||||
Cols: []string{"alert_id"}, Type: IndexType,
|
||||
}))
|
||||
|
||||
mg.AddMigration("Increase tags column to length 4096", NewRawSQLMigration("").
|
||||
Postgres("ALTER TABLE annotation ALTER COLUMN tags TYPE VARCHAR(4096);").
|
||||
Mysql("ALTER TABLE annotation MODIFY tags VARCHAR(4096);"))
|
||||
}
|
||||
|
||||
type AddMakeRegionSingleRowMigration struct {
|
||||
|
||||
Reference in New Issue
Block a user