[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/maintenance/sqlite/archives/ -> patch-cat_hidden.sql (source)

   1  -- cat_hidden is no longer used, delete it
   2  
   3  CREATE TABLE /*_*/category_tmp (
   4    cat_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
   5    cat_title varchar(255) binary NOT NULL,
   6    cat_pages int signed NOT NULL default 0,
   7    cat_subcats int signed NOT NULL default 0,
   8    cat_files int signed NOT NULL default 0
   9  ) /*$wgDBTableOptions*/;
  10  
  11  INSERT INTO /*_*/category_tmp
  12      SELECT cat_id, cat_title, cat_pages, cat_subcats, cat_files
  13          FROM /*_*/category;
  14  
  15  DROP TABLE /*_*/category;
  16  
  17  ALTER TABLE /*_*/category_tmp RENAME TO /*_*/category;
  18  
  19  CREATE UNIQUE INDEX /*i*/cat_title ON /*_*/category (cat_title);
  20  CREATE INDEX /*i*/cat_pages ON /*_*/category (cat_pages);


Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1