Wikibase/Schema/wb id counters

From MediaWiki.org
Jump to navigation Jump to search

Appears to store one counter for the number of items and one for the number of properties stored in the wikibase.

Fields[edit]

id_value[edit]

  • The value of the counter
  • e.g. on Wikidata (at time of writing), wikibase-item has a value of 21848497 and wikibase-property has a value of 2421.

id_type[edit]

Example values:

  • wikibase-item
  • wikibase-property
  • wikibase-lexeme

Wikidata's table (as mirrored on wmflabs) currently contains only these three rows.

Versions[edit]

Current as of Wikibase 0.4 (19 Feb 2013)

+----------+------------------+------+-----+---------+-------+
| Field    | Type             | Null | Key | Default | Extra |
+----------+------------------+------+-----+---------+-------+
| id_value | int(10) unsigned | NO   |     | NULL    |       |
| id_type  | varbinary(32)    | NO   | PRI | NULL    |       |
+----------+------------------+------+-----+---------+-------+