Add updater to remove inverse_timestamp and fix indexes on revision table
[mediawiki.git] / maintenance / archives / patch-rc_type.sql
blob1097771b19482b9fc9cb81356c0b0827904a5938
1 -- recentchanges improvements --
3 ALTER TABLE /*$wgDBprefix*/recentchanges
4   ADD rc_type tinyint(3) unsigned NOT NULL default '0',
5   ADD rc_moved_to_ns tinyint(3) unsigned NOT NULL default '0',
6   ADD rc_moved_to_title varchar(255) binary NOT NULL default '';
8 UPDATE /*$wgDBprefix*/recentchanges SET rc_type=1 WHERE rc_new;
9 UPDATE /*$wgDBprefix*/recentchanges SET rc_type=3 WHERE rc_namespace=4 AND (rc_title='Deletion_log' OR rc_title='Upload_log');