Jump to content
MediaWiki

Extension:CheckUser/cuci wiki map table

From mediawiki.org
Languages:
MediaWiki version:
≥ 1.43

A table for the CheckUser extension used to map wiki IDs (otherwise known as wiki DB name) to an integer ID. The rows in this table are referenced by the cite_ciwm_id and ciu_ciwm_id columns.

This table is in a set of tables that begin with the cuci_ prefix which are used to index the CheckUser result tables on multiple wikis. For single wiki installs, these tables are unused but are still created as there is not an easy way to determine if a wiki is in a multi-wiki install.

Fields

[edit ]

ciwm_id

[edit ]

Unique ID to identify each wiki ID. The primary key can be a smallint as the number of rows matches the number of wikis in an install, therefore ~65,000 is IDs is enough.

ciwm_wiki

[edit ]

The wiki ID as a string. This is indexed by a unique index to ensure that only one row exists for each wiki ID.

Schema

[edit ]

DESCRIBEcuci_wiki_map;

+-----------+----------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+----------------------+------+-----+---------+----------------+
| ciwm_id | smallint(5) unsigned | NO | PRI | NULL | auto_increment |
| ciwm_wiki | varbinary(255) | NO | UNI | NULL | |
+-----------+----------------------+------+-----+---------+----------------+

Indexes

[edit ]

SHOWINDEXINcuci_wiki_map;

+---------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Ignored |
+---------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
| cuci_wiki_map | 0 | PRIMARY | 1 | ciwm_id | A | 0 | NULL | NULL | | BTREE | | | NO |
| cuci_wiki_map | 0 | ciwm_wiki | 1 | ciwm_wiki | A | 0 | NULL | NULL | | BTREE | | | NO |
+---------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+
Engines
Current
Former
Technical documentation
Configuration
Development
Core tables
Current
Former
Wikimedia extension database tables
AbuseFilter
AntiSpoof
Babel
BetaFeatures
BounceHandler
CampaignEvents
CentralAuth
CentralNotice
CheckUser
Cognate
CommunityRequests
ContentTranslation
CreditsSource
DiscussionTools
Echo
EntitySchema
FlaggedRevs
GeoData
GlobalBlocking
GlobalPreferences
GlobalUsage
GrowthExperiments
Linter
LiquidThreads
LoginNotify
MediaModeration
Math
Newsletter
OATHAuth
OAuth
ORES
PageAssessments
PageTriage
Proofread Page
PropertySuggester
ReadingLists
SecurePoll
ShortUrl
TimedMediaHandler
Translate
UploadWizard
UrlShortener
WikibaseQualityConstraints
Wikibase Client
Wikibase Repository
WikiLambda
WikiLove
WikimediaCampaignEvents
WikimediaEditorTasks

AltStyle によって変換されたページ (->オリジナル) /