Unified Storage: Add index on dashboard_tag table for dashboard_uid column (#102551)

add index on dashboard_tag table for dashboard_uid column
This commit is contained in:
owensmallwood
2025-03-20 16:51:37 -06:00
committed by GitHub
parent 1483dee75c
commit 4e27ee2ff6
@@ -261,6 +261,11 @@ func addDashboardMigration(mg *Migrator) {
mg.AddMigration("Add apiVersion for dashboard", NewAddColumnMigration(dashboardV2, &Column{ mg.AddMigration("Add apiVersion for dashboard", NewAddColumnMigration(dashboardV2, &Column{
Name: "api_version", Type: DB_Varchar, Length: 16, Nullable: true, Name: "api_version", Type: DB_Varchar, Length: 16, Nullable: true,
})) }))
mg.AddMigration("Add index for dashboard_uid on dashboard_tag table", NewAddIndexMigration(dashboardTagV1, &Index{
Cols: []string{"dashboard_uid"},
Type: IndexType,
}))
} }
type FillDashbordUIDAndOrgIDMigration struct { type FillDashbordUIDAndOrgIDMigration struct {