Files
grafana/apps/dashboard/pkg/migration/schemaversion/v32.go
T
Ivan Ortega Alba 14cb6aea92 Dashboard Migrations: V32 no-op migration + V31 LabelsToFields-Merge Migration (#107947)
* Dashboard Migrations: V31 LabelsToFields-Merge Migration

* Dashboard Migrations: V32 No-op migration
2025-07-15 15:28:48 +00:00

28 lines
614 B
Go

package schemaversion
// V32 is a no-op migration that serves as a placeholder for consistency.
//
// The migration performs no modifications to the dashboard structure and simply
// updates the schema version number.
// Example (no changes made):
//
// Before migration:
//
// dashboard: {
// "title": "My Dashboard",
// "schemaVersion": 31,
// "panels": [...]
// }
//
// After migration:
//
// dashboard: {
// "title": "My Dashboard",
// "schemaVersion": 32,
// "panels": [...] // unchanged
// }
func V32(dashboard map[string]interface{}) error {
dashboard["schemaVersion"] = int(32)
return nil
}