Use wfMkdirParents() here, rather than 3 mkdir() calls.
[lhc/web/wiklou.git] / maintenance / tables.sql
index 08889b2..d4a60af 100644 (file)
@@ -596,6 +596,9 @@ CREATE TABLE /*$wgDBprefix*/site_stats (
 
   -- Number of users, theoretically equal to SELECT COUNT(*) FROM user;
   ss_users bigint default '-1',
+  
+  -- Number of users that still edit
+  ss_active_users bigint default '-1',
 
   -- Deprecated, no longer updated as of 1.5
   ss_admins int default '-1',
@@ -675,6 +678,9 @@ CREATE TABLE /*$wgDBprefix*/ipblocks (
   -- Block prevents user from accessing Special:Emailuser
   ipb_block_email bool NOT NULL default 0,
   
+  -- Block allows user to edit their own talk page
+  ipb_allow_usertalk bool NOT NULL default 0,
+  
   PRIMARY KEY ipb_id (ipb_id),
 
   -- Unique index to support "user already blocked" messages
@@ -904,7 +910,7 @@ CREATE TABLE /*$wgDBprefix*/recentchanges (
   rc_old_len int,
   rc_new_len int,
 
-  -- Visibility of deleted revisions, bitfield
+  -- Visibility of recent changes items, bitfield
   rc_deleted tinyint unsigned NOT NULL default '0',
 
   -- Value corresonding to log_id, specific log entries
@@ -1044,7 +1050,7 @@ CREATE TABLE /*$wgDBprefix*/objectcache (
   keyname varbinary(255) NOT NULL default '',
   value mediumblob,
   exptime datetime,
-  UNIQUE KEY (keyname),
+  PRIMARY KEY (keyname),
   KEY (exptime)
 
 ) /*$wgDBTableOptions*/;
@@ -1237,28 +1243,4 @@ CREATE TABLE /*$wgDBprefix*/updatelog (
   PRIMARY KEY (ul_key)
 ) /*$wgDBTableOptions*/;
 
--- A table to track link changes
--- Experimental: enable using $wgTrackLinkChanges
-CREATE TABLE /*$wgDBprefix*/recentlinkchanges (
-  rlc_id int unsigned NOT NULL auto_increment,
-
-  -- page, image, category, ...
-  rlc_type varchar(15) binary NOT NULL,
-  rlc_timestamp binary(14) NOT NULL default '',
-  -- 1: insert; 2: deletion;
-  -- should probably make this an enum...
-  rlc_action tinyint NOT NULL default 0,
-
-  -- page where the links are on
-  rlc_from int NOT NULL,
-
-  rlc_to_namespace int,
-  rlc_to_title varchar(255) binary,
-  rlc_to_blob blob,
-
-  PRIMARY KEY (rlc_id),
-  KEY from_timestamp (rlc_type, rlc_timestamp),
-  KEY to_timestamp (rlc_to_namespace, rlc_to_title, rlc_timestamp)
-) /*$wgDBTableOptions*/;
-
 -- vim: sw=2 sts=2 et