af1b878cb7
* migrate to v19 * migrate to v18 * Migration to be verified: v17 Convert minSpan to maxPerRow in panels * Migration to be verified: 16 Grid layout migration * Refactor v17 and v19 migrations to use shared helper functions * Migration to be verified: 15 No-op migration for schema consistency * Update v27.go * Update v16.go * cleanup --------- Co-authored-by: Haris Rozajac <haris.rozajac12@gmail.com> Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>
26 lines
591 B
Go
26 lines
591 B
Go
package schemaversion
|
|
|
|
// V15 migration is a no-op migration
|
|
// It only updates the schema version to 15
|
|
// It's created to keep the migration history consistent with frontend migrator
|
|
// No specific migration logic is needed between schema version 14 and 15
|
|
|
|
// Example before migration:
|
|
// {
|
|
// "schemaVersion": 14,
|
|
// "title": "My Dashboard",
|
|
// "panels": [...]
|
|
// }
|
|
|
|
// Example after migration:
|
|
// {
|
|
// "schemaVersion": 15,
|
|
// "title": "My Dashboard",
|
|
// "panels": [...]
|
|
// }
|
|
|
|
func V15(dashboard map[string]interface{}) error {
|
|
dashboard["schemaVersion"] = 15
|
|
return nil
|
|
}
|