mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboards: Restore deleted index (#81859)
Dashboards: Recreate deleted index
This commit is contained in:
committed by
GitHub
parent
ed62aefeb0
commit
c1547162e4
@@ -90,4 +90,9 @@ func AddDashboardFolderMigrations(mg *migrator.Migrator) {
|
||||
mg.AddMigration("Add unique index for dashboard_org_id_folder_uid_title_is_folder", migrator.NewAddIndexMigration(migrator.Table{Name: "dashboard"}, &migrator.Index{
|
||||
Cols: []string{"org_id", "folder_uid", "title", "is_folder"}, Type: migrator.UniqueIndex,
|
||||
}))
|
||||
|
||||
// Temporary index until decommisioning of folder_id in query
|
||||
mg.AddMigration("Restore index for dashboard_org_id_folder_id_title", migrator.NewAddIndexMigration(migrator.Table{Name: "dashboard"}, &migrator.Index{
|
||||
Cols: []string{"org_id", "folder_id", "title"},
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user