Continuing with the background task of unifying revision table in all the shards, this is a task to fix s7:
arwiki cawiki eswiki fawiki hewiki huwiki kowiki metawiki rowiki ukwiki viwiki
Most of the slaves look like this:
PRIMARY KEY (`rev_page`,`rev_id`), UNIQUE KEY `rev_id` (`rev_id`), KEY `rev_timestamp` (`rev_timestamp`), KEY `page_timestamp` (`rev_page`,`rev_timestamp`), KEY `user_timestamp` (`rev_user`,`rev_timestamp`), KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`)
So they'd need:
./osc_host.sh --host=xxxx --port=3306 --db=$i --table=revision --method=ddl --no-replicate "drop key rev_id, drop primary key, add primary key (rev_id), add key page_user_timestamp (rev_page,rev_user,rev_timestamp), add key rev_page_id (rev_page,rev_id)"
The recentchanges slaves (db1062,db1034 and db2040) look the same as above, so if we want them to be unified with a normal rc slave they'd need:
drop key rev_id, drop primary key, add primary key (rev_id,rev_user), drop key rev_timestamp, drop key page_timestamp, drop key user_timestamp, drop key usertext_timestamp, add key rev_timestamp (rev_timestamp,rev_id), add key page_timestamp (rev_page,rev_timestamp,rev_id), add key usertext_timestamp (rev_user_text,rev_timestamp,rev_id), add key user_timestamp (rev_user,rev_timestamp,rev_id), add key rev_page_id (rev_page,rev_id), add key page_user_timestamp (rev_page,rev_user,rev_timestamp,rev_id)