Manual:site_identifiers table

Other languages:
English • ‎日本語
Manual:Contents MediaWiki database layout site_identifiers table


MediaWiki version: 1.21

The site_identifiers table contains:

FieldsEdit

si_siteEdit

Id of site record in sites table.

si_typeEdit

One of two values:

  • interwiki: the key is an interwiki link identifier such as en, tr, simple
  • equivalent: the key is a navigation id used in e.g. the "language links" section

In most cases these entries are both present and are identical for Wikimedia sites. Some sites have only an interwiki entry, for example commons, mediawiki, meta.

si_keyEdit

A language code or other link code, such as en, tr, simple, commons, plwikimedia, identifying a site's type for purposes of links between sites in a wiki farm.

Schema summaryEdit

MediaWiki version: 1.35

DESCRIBE site_identifiers;

+---------+------------------+------+-----+---------+-------+
| Field   | Type             | Null | Key | Default | Extra |
+---------+------------------+------+-----+---------+-------+
| si_type | varbinary(32)    | NO   | PRI | NULL    |       |
| si_key  | varbinary(32)    | NO   | PRI | NULL    |       |
| si_site | int(10) unsigned | NO   | MUL | NULL    |       |
+---------+------------------+------+-----+---------+-------+
MediaWiki versions: 1.21 – 1.34

DESCRIBE site_identifiers;

+---------+------------------+------+-----+---------+-------+
| Field   | Type             | Null | Key | Default | Extra |
+---------+------------------+------+-----+---------+-------+
| si_site | int(10) unsigned | NO   | MUL | NULL    |       |
| si_type | varbinary(32)    | NO   | PRI | NULL    |       |
| si_key  | varbinary(32)    | NO   | PRI | NULL    |       |
+---------+------------------+------+-----+---------+-------+