Page MenuHomePhabricator

Make populateSitesTable.php more robust
Open, MediumPublic

Description

As part of T158730, it'd be good to make populateSitesTable.php more robust

https://wikitech.wikimedia.org/w/index.php?title=Add_a_wiki&oldid=1560435#Wikidata doesn't inspire much confidence!

That script is known to be troublesome, you might want to ask Marius (hoo) or Katie (aude) run it for you or just create a ticket (that may be done anytime after the wiki was created).

Beware: The script sometimes fails with a duplicate key conflict. In that case, go to the wiki's master database and empty the sites and site_identifiers tables, then run the script again. It's probably also wise to backup these tables from Wikidata and at least one Wikipedia before running the script across the whole fleet. Breaking the sites, site_identifiers tables will break page rendering of many wikis!