On Tue, Jul 23, 2013 at 5:15 PM, Jeroen De Dauw <jeroendedauw(a)gmail.com>wrote;wrote:
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(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
--
Katie Filbert
Wikidata Developer
Wikimedia Germany e.V. | NEW: Obentrautstr. 72 | 10963 Berlin
Phone (030) 219 158 26-0
http://wikimedia.de
Wikimedia Germany - Society for the Promotion of free knowledge eV Entered
in the register of Amtsgericht Berlin-Charlottenburg under the number 23
855 as recognized as charitable by the Inland Revenue for corporations I
Berlin, tax number 27/681/51985.