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?

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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech

Reply via email to