From 73bd373a7584a90b88bf9529ea64c40189100714 Mon Sep 17 00:00:00 2001 From: Wang Yan Date: Thu, 20 May 2021 19:50:13 +0800 Subject: [PATCH] create index for audit (#14930) Signed-off-by: Wang Yan --- make/migrations/postgresql/0060_2.3.0_schema.up.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make/migrations/postgresql/0060_2.3.0_schema.up.sql b/make/migrations/postgresql/0060_2.3.0_schema.up.sql index 01132ba9c..853d69a5c 100644 --- a/make/migrations/postgresql/0060_2.3.0_schema.up.sql +++ b/make/migrations/postgresql/0060_2.3.0_schema.up.sql @@ -4,4 +4,5 @@ UPDATE replication_policy SET dest_namespace_replace_count=-1 WHERE dest_namespa CREATE INDEX IF NOT EXISTS idx_artifact_push_time ON artifact (push_time); CREATE INDEX IF NOT EXISTS idx_tag_push_time ON tag (push_time); CREATE INDEX IF NOT EXISTS idx_tag_artifact_id ON tag (artifact_id); -CREATE INDEX IF NOT EXISTS idx_artifact_reference_child_id ON artifact_reference (child_id); \ No newline at end of file +CREATE INDEX IF NOT EXISTS idx_artifact_reference_child_id ON artifact_reference (child_id); +CREATE INDEX IF NOT EXISTS idx_audit_log_op_time ON audit_log (op_time); \ No newline at end of file