unified-storage: add index on resource_history key_path column (#115113)

This commit is contained in:
Will Assis
2025-12-10 16:03:58 -05:00
committed by GitHub
parent 63bfc1596c
commit 30045c02c0
@@ -198,5 +198,11 @@ func initResourceTables(mg *migrator.Migrator) string {
}
mg.AddMigration("create table "+resource_events_table.Name, migrator.NewAddTableMigration(resource_events_table))
mg.AddMigration("Add IDX_resource_history_key_path index", migrator.NewAddIndexMigration(resource_history_table, &migrator.Index{
Cols: []string{"key_path"},
Type: migrator.IndexType,
Name: "IDX_resource_history_key_path",
}))
return marker
}