fix: add index for resource history get with trash on (#102894)
This commit is contained in:
committed by
GitHub
parent
51bbfa2d08
commit
a4e8bd16de
@@ -151,5 +151,9 @@ func initResourceTables(mg *migrator.Migrator) string {
|
||||
|
||||
mg.AddMigration("Migrate DeletionMarkers to real Resource objects", &deletionMarkerMigrator{})
|
||||
|
||||
mg.AddMigration("Add index to resource_history for get trash", migrator.NewAddIndexMigration(resource_history_table, &migrator.Index{
|
||||
Name: "IDX_resource_history_namespace_group_resource_action_version", Cols: []string{"namespace", "group", "resource", "action", "resource_version"}, Type: migrator.IndexType,
|
||||
}))
|
||||
|
||||
return marker
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user