From: Aaron Schulz Date: Tue, 14 Apr 2009 02:14:05 +0000 (+0000) Subject: Added proposed log_search table to deal with revisiondelete log extracts and possibly... X-Git-Tag: 1.31.0-rc.0~42147 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=0907de937ef3335074421069aa48f999a108c8df;p=lhc%2Fweb%2Fwiklou.git Added proposed log_search table to deal with revisiondelete log extracts and possibly other issues --- 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);