mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Add missing index on statehistory table for DB IDO cleanup
fixes #12107
This commit is contained in:
parent
f87f20e9ec
commit
a0a5989181
@ -1662,6 +1662,9 @@ CREATE INDEX idx_zonestatus_object_id on icinga_zonestatus(zone_object_id);
|
||||
CREATE INDEX idx_zones_parent_object_id on icinga_zones(parent_zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_parent_object_id on icinga_zonestatus(parent_zone_object_id);
|
||||
|
||||
-- #12107
|
||||
CREATE INDEX idx_statehistory_cleanup on icinga_statehistory(instance_id, state_time);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- set dbversion
|
||||
-- -----------------------------------------
|
||||
|
@ -45,6 +45,11 @@ CREATE INDEX idx_zonestatus_object_id on icinga_zonestatus(zone_object_id);
|
||||
CREATE INDEX idx_zones_parent_object_id on icinga_zones(parent_zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_parent_object_id on icinga_zonestatus(parent_zone_object_id);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- #12107
|
||||
-- -----------------------------------------
|
||||
CREATE INDEX idx_statehistory_cleanup on icinga_statehistory(instance_id, state_time);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- set dbversion
|
||||
-- -----------------------------------------
|
||||
|
@ -1691,6 +1691,9 @@ CREATE INDEX idx_zonestatus_object_id on icinga_zonestatus(zone_object_id);
|
||||
CREATE INDEX idx_zones_parent_object_id on icinga_zones(parent_zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_parent_object_id on icinga_zonestatus(parent_zone_object_id);
|
||||
|
||||
-- #12107
|
||||
CREATE INDEX idx_statehistory_cleanup on icinga_statehistory(instance_id, state_time);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- set dbversion
|
||||
-- -----------------------------------------
|
||||
|
@ -38,6 +38,11 @@ CREATE INDEX idx_zonestatus_object_id on icinga_zonestatus(zone_object_id);
|
||||
CREATE INDEX idx_zones_parent_object_id on icinga_zones(parent_zone_object_id);
|
||||
CREATE INDEX idx_zonestatus_parent_object_id on icinga_zonestatus(parent_zone_object_id);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- #12107
|
||||
-- -----------------------------------------
|
||||
CREATE INDEX idx_statehistory_cleanup on icinga_statehistory(instance_id, state_time);
|
||||
|
||||
-- -----------------------------------------
|
||||
-- set dbversion
|
||||
-- -----------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user