On Tue, Jul 23, 2013 at 5:15 PM, Jeroen De Dauw jeroendedauw@gmail.comwrote:
Hey,
I think the table should have si_key = 'en' for English Wikivoyage. That
means a database rows for enwiki and enwikivoyage would be:
4977 | interwiki | en | 4984 | interwiki | en |
****but**** the table defines a si_type and si_key as a unique key, so this does not work currently.
UNIQUE KEY `site_ids_type` (`si_type`,`si_key`),
Any insights on why things are the way they are?
Imagine it is like you say and you have two interwiki identifiers "en".
[[en:SomePage]]
Where does that link to? English Wikipedia? English Wikivoyage? Both? What?
To distinguish, you do [[w:en]] for English Wikipedia and [[voy:en]] for English Wikivoyage. Without that prefix, then assume within the site group.
In Wikimedia's config, the interwiki code is same as language code and there can't be more than one language per site group.
Cheers, Katie
IIRC this constrains was already there in the old system. Is that wrong?
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. ~=[,,_,,]:3 --
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech