r20222 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20221‎ | r20222 | r20223 >
Date:03:20, 8 March 2007
Author:river
Status:old
Tags:
Comment:
tables.sql needs rev_len
Modified paths:
  • /trunk/phase3/maintenance/postgres/tables.sql (modified) (history)
  • /trunk/phase3/maintenance/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/postgres/tables.sql
@@ -92,7 +92,8 @@
9393 rev_user_text TEXT NOT NULL,
9494 rev_timestamp TIMESTAMPTZ NOT NULL,
9595 rev_minor_edit CHAR NOT NULL DEFAULT '0',
96 - rev_deleted CHAR NOT NULL DEFAULT '0'
 96+ rev_deleted CHAR NOT NULL DEFAULT '0',
 97+ rev_len INTEGER NULL
9798 );
9899 CREATE UNIQUE INDEX revision_unique ON revision (rev_page, rev_id);
99100 CREATE INDEX rev_text_id_idx ON revision (rev_text_id);
Index: trunk/phase3/maintenance/tables.sql
@@ -270,6 +270,9 @@
271271 -- Not yet used; reserved for future changes to the deletion system.
272272 rev_deleted tinyint(1) unsigned NOT NULL default '0',
273273
 274+ -- Length of this revision in bytes
 275+ rev_len int(8) unsigned,
 276+
274277 PRIMARY KEY rev_page_id (rev_page, rev_id),
275278 UNIQUE INDEX rev_id (rev_id),
276279 INDEX rev_timestamp (rev_timestamp),