This commit is contained in:
19
migrations/000204_add_audit_investigation_indexes.down.sql
Normal file
19
migrations/000204_add_audit_investigation_indexes.down.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
-- 回滚统一审计跨视角查询索引,并恢复 request 与 parent 的原始精确查询索引。
|
||||
DROP INDEX idx_audit_resource_key_event;
|
||||
DROP INDEX idx_audit_resource_id_event;
|
||||
|
||||
DROP INDEX idx_audit_event_parent;
|
||||
CREATE INDEX idx_audit_event_parent
|
||||
ON tb_audit_event (parent_event_id)
|
||||
WHERE parent_event_id <> '';
|
||||
|
||||
DROP INDEX idx_audit_event_request;
|
||||
CREATE INDEX idx_audit_event_request
|
||||
ON tb_audit_event (request_id)
|
||||
WHERE request_id <> '';
|
||||
|
||||
DROP INDEX idx_audit_event_source_occurred;
|
||||
DROP INDEX idx_audit_event_category_occurred;
|
||||
DROP INDEX idx_audit_event_risk_occurred;
|
||||
DROP INDEX idx_audit_event_result_occurred;
|
||||
DROP INDEX idx_audit_event_action_occurred;
|
||||
Reference in New Issue
Block a user