dumpBackup should instantiate correct database class for db type
[lhc/web/wiklou.git] / maintenance / tables.sql
index 28339f6..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),
@@ -1097,7 +1100,7 @@ CREATE TABLE /*$wgDBprefix*/page_restrictions (
   -- Field for an ID for this restrictions row (sort-key for Special:ProtectedPages)
   pr_id int unsigned not null auto_increment,
 
-  PRIMARY KEY (pr_page,pr_type),
+  PRIMARY KEY pr_pagetype (pr_page,pr_type),
 
   UNIQUE KEY  pr_id (pr_id),
   KEY pr_page (pr_page),