Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:linktarget table

From mediawiki.org
Translate this page
Languages:
Manual:Contents
MediaWiki database layout
linktarget table
MediaWiki version:
1.38

This table stores a page namespace-title tuples, each one with a unique integer ID.This table is used for referenced page titles in the following tables that track links to pages:templatelinks,pagelinks,categorylinks.

This table contains immutable rows, which means only new rows are inserted, and never deleted or updated during normal wiki operation.However, thepruneUnusedLinkTargetRows.php maintenance script can be run to delete unused entries.

Access to this table from code is handled by instances of the classMediaWiki\Linker\LinkTargetLookup interface.

During schema migration, this table is filled using themigrateLinksTable.php maintenance script.$wgTemplateLinksSchemaMigrationStage controls whether data is read/written to this table.

Fields

[edit]

lt_id

[edit]

Primary key.

lt_namespace

[edit]

Namespace of the link target.

lt_title

[edit]

Text part of link target excluding namespace.

Schema summary

[edit]
MediaWiki version:
1.38

DESCRIBElinktarget;

+--------------+---------------------+------+-----+---------+----------------+| Field        | Type                | Null | Key | Default | Extra          |+--------------+---------------------+------+-----+---------+----------------+| lt_id        | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment || lt_namespace | int(11)             | NO   | MUL | NULL    |                || lt_title     | varbinary(255)      | NO   |     | NULL    |                |+--------------+---------------------+------+-----+---------+----------------+

Indexes

[edit]
MediaWiki version:
1.38
Gerrit change 754989

SHOWINDEXINlinktarget;

+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+| Table      | Non_unique | Key_name           | Seq_in_index | Column_name  | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+| linktarget |          0 | PRIMARY            |            1 | lt_id        | A         |           0 |     NULL | NULL   |      | BTREE      |         |               || linktarget |          0 | lt_namespace_title |            1 | lt_namespace | A         |           0 |     NULL | NULL   |      | BTREE      |         |               || linktarget |          0 | lt_namespace_title |            2 | lt_title     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |+------------+------------+--------------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
Engines
Current
Former
Technical documentation
Configuration
Development
Core tables
Current
Former
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Linktarget_table&oldid=7971351"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp