From 0907de937ef3335074421069aa48f999a108c8df Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 14 Apr 2009 02:14:05 +0000 Subject: [PATCH] Added proposed log_search table to deal with revisiondelete log extracts and possibly other issues --- maintenance/archives/patch-log_search.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 maintenance/archives/patch-log_search.sql diff --git a/maintenance/archives/patch-log_search.sql b/maintenance/archives/patch-log_search.sql new file mode 100644 index 0000000000..8703eed81f --- /dev/null +++ b/maintenance/archives/patch-log_search.sql @@ -0,0 +1,13 @@ +CREATE TABLE /*_*/log_search ( + -- Key to log_type + ls_log_type varbinary(32) NOT NULL, + -- Key to log_action + ls_log_action varbinary(32) NOT NULL, + -- The type of ID (rev ID, timestamp, other) + ls_field varbinary(32) NOT NULL, + -- The value of the ID + ls_value varchar(255) NOT NULL, + -- Key to log_id + ls_log_id int unsigned NOT NULL default 0 +); +CREATE INDEX /*i*/log_field_value ON /*_*/log_search (ls_field,ls_value,ls_log_id); -- 2.20.1