r50625 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50624‎ | r50625 | r50626 >
Date:11:34, 15 May 2009
Author:ialex
Status:ok
Tags:
Comment:
Follow-up r50567: also update PostgreSQL and SQLite schema
Modified paths:
  • /trunk/phase3/maintenance/postgres/archives/patch-log_search.sql (added) (history)
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/archives/patch-log_search.sql
@@ -0,0 +1,9 @@
 2+
 3+CREATE TABLE log_search (
 4+ ls_field TEXT NOT NULL,
 5+ ls_value TEXT NOT NULL,
 6+ ls_log_id INTEGER NOT NULL DEFAULT 0
 7+);
 8+
 9+ALTER TABLE log_search ADD CONSTRAINT log_search_pk PRIMARY KEY(ls_field, ls_value, ls_log_id);
 10+CREATE INDEX ls_log_id ON log_search (ls_log_id);
Property changes on: trunk/phase3/maintenance/postgres/archives/patch-log_search.sql
___________________________________________________________________
Name: svn:eol-style
111 + native
Index: trunk/phase3/maintenance/updaters.inc
@@ -173,6 +173,8 @@
174174 array( 'add_table', 'tag_summary', 'patch-change_tag.sql' ),
175175 array( 'add_table', 'valid_tag', 'patch-change_tag.sql' ),
176176 array( 'add_table', 'user_properties', 'patch-user_properties.sql' ),
 177+ array( 'add_table', 'log_search', 'patch-log_search.sql' ),
 178+ array( 'do_log_search_population' ),
177179 ),
178180 );
179181
@@ -1537,6 +1539,7 @@
15381540 array('tag_summary', 'patch-change_tag.sql'),
15391541 array('valid_tag', 'patch-change_tag.sql'),
15401542 array('user_properties', 'patch-user_properties.sql'),
 1543+ array('log_search', 'patch-log_search.sql'),
15411544 );
15421545
15431546 $newcols = array(

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50567[schema change] Use new log_search table to replace ugly code from r48839. Ma...aaron22:03, 13 May 2009

Status & tagging log