tables.sql needs rev_len
authorRiver Tarnell <river@users.mediawiki.org>
Thu, 8 Mar 2007 03:20:31 +0000 (03:20 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Thu, 8 Mar 2007 03:20:31 +0000 (03:20 +0000)
maintenance/postgres/tables.sql
maintenance/tables.sql

index 2ed27ef..bdbf2e1 100644 (file)
@@ -92,7 +92,8 @@ CREATE TABLE revision (
   rev_user_text   TEXT         NOT NULL,
   rev_timestamp   TIMESTAMPTZ  NOT NULL,
   rev_minor_edit  CHAR         NOT NULL  DEFAULT '0',
-  rev_deleted     CHAR         NOT NULL  DEFAULT '0'
+  rev_deleted     CHAR         NOT NULL  DEFAULT '0',
+  rev_len         INTEGER          NULL
 );
 CREATE UNIQUE INDEX revision_unique ON revision (rev_page, rev_id);
 CREATE INDEX rev_text_id_idx        ON revision (rev_text_id);
index 8dc09d2..ba1a885 100644 (file)
@@ -270,6 +270,9 @@ CREATE TABLE /*$wgDBprefix*/revision (
   -- Not yet used; reserved for future changes to the deletion system.
   rev_deleted tinyint(1) unsigned NOT NULL default '0',
   
+  -- Length of this revision in bytes
+  rev_len int(8) unsigned,
+
   PRIMARY KEY rev_page_id (rev_page, rev_id),
   UNIQUE INDEX rev_id (rev_id),
   INDEX rev_timestamp (rev_timestamp),