fix(dashboards): use index for schema migration datasource lookups (#113911)

This commit is contained in:
Jean-Philippe Quéméner
2025-11-17 08:56:54 +01:00
committed by GitHub
parent f50d513252
commit 64c61c6916
15 changed files with 288 additions and 225 deletions
@@ -96,7 +96,7 @@ func V{N}(_ context.Context, dashboard map[string]interface{}) error {
Add your migration to `migrations.go`:
```go
func GetMigrations(dsInfoProvider DataSourceInfoProvider) map[int]SchemaVersionMigrationFunc {
func GetMigrations(dsIndexProvider DataSourceIndexProvider) map[int]SchemaVersionMigrationFunc {
return map[int]SchemaVersionMigrationFunc{
// ... existing migrations
{N}: V{N}, // Add your migration here