Added proposed log_search table to deal with revisiondelete log extracts and possibly...
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 14 Apr 2009 02:14:05 +0000 (02:14 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 14 Apr 2009 02:14:05 +0000 (02:14 +0000)
maintenance/archives/patch-log_search.sql [new file with mode: 0644]

diff --git a/maintenance/archives/patch-log_search.sql b/maintenance/archives/patch-log_search.sql
new file mode 100644 (file)
index 0000000..8703eed
--- /dev/null
@@ -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);