Merge "Drop index oi_name_archive_name on table oldimage"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 13 Mar 2017 05:19:57 +0000 (05:19 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 13 Mar 2017 05:19:57 +0000 (05:19 +0000)
1  2 
maintenance/mssql/tables.sql

@@@ -64,11 -64,9 +64,11 @@@ INSERT INTO /*_*/mwuser (user_name) VAL
  CREATE TABLE /*_*/user_groups (
     ug_user  INT     NOT NULL REFERENCES /*_*/mwuser(user_id) ON DELETE CASCADE,
     ug_group NVARCHAR(255) NOT NULL DEFAULT '',
 +   ug_expiry varchar(14) DEFAULT NULL,
 +   PRIMARY KEY(ug_user, ug_group)
  );
 -CREATE UNIQUE clustered INDEX /*i*/ug_user_group ON /*_*/user_groups (ug_user, ug_group);
  CREATE INDEX /*i*/ug_group ON /*_*/user_groups(ug_group);
 +CREATE INDEX /*i*/ug_expiry ON /*_*/user_groups(ug_expiry);
  
  -- Stores the groups the user has once belonged to.
  -- The user may still belong to these groups (check user_groups).
@@@ -301,7 -299,7 +301,7 @@@ CREATE TABLE /*_*/categorylinks 
    -- conversion algorithm is run.  We store this so that we can update
    -- collations without reparsing all pages.
    -- Note: If you change the length of this field, you also need to change
 -  -- code in LinksUpdate.php. See bug 25254.
 +  -- code in LinksUpdate.php. See T27254.
    cl_sortkey_prefix varbinary(255) NOT NULL default 0x,
  
    -- This isn't really used at present. Provided for an optional
@@@ -528,7 -526,7 +528,7 @@@ CREATE TABLE /*_*/ipblocks 
    -- Size chosen to allow IPv6
    -- FIXME: these fields were originally blank for single-IP blocks,
    -- but now they are populated. No migration was ever done. They
 -  -- should be fixed to be blank again for such blocks (bug 49504).
 +  -- should be fixed to be blank again for such blocks (T51504).
    ipb_range_start varchar(255) NOT NULL,
    ipb_range_end varchar(255) NOT NULL,
  
@@@ -661,7 -659,6 +661,6 @@@ CREATE TABLE /*_*/oldimage 
  
  CREATE INDEX /*i*/oi_usertext_timestamp ON /*_*/oldimage (oi_user_text,oi_timestamp);
  CREATE INDEX /*i*/oi_name_timestamp ON /*_*/oldimage (oi_name,oi_timestamp);
- CREATE INDEX /*i*/oi_name_archive_name ON /*_*/oldimage (oi_name,oi_archive_name);
  CREATE INDEX /*i*/oi_sha1 ON /*_*/oldimage (oi_sha1);