"comment":"The \"actor\" table associates user names or IP addresses with integers for the benefit of other tables that need to refer to either logged-in or logged-out users. If something can only ever be done by logged-in users, it can refer to the user table directly.",
"comment":"Stores the groups the user has once belonged to. The user may still belong to these groups (check user_groups). Autopromotion of users to groups from which they were removed can be restricted by using wgAutopromoteOnce instead of wgAutopromote.",
"comment":"Edits, blocks, and other actions typically have a textual comment describing the action. They are stored here to reduce the size of the main tables, and to allow for deduplication. Deduplication is currently best-effort to avoid locking on inserts that would be required for strict deduplication. There MAY be multiple rows with the same comment_text and comment_data.",
"comment":"Hash of comment_text and comment_data, for deduplication",
"type":"integer",
"options":{"notnull":true}
},
{
"name":"comment_text",
"comment":"Text comment summarizing the change. This text is shown in the history and other changes lists, rendered in a subset of wiki markup by Linker::formatComment(). Size limits are enforced at the application level, and should take care to crop UTF-8 strings appropriately.",
"type":"blob",
"options":{"length":65535,"notnull":true}
},
{
"name":"comment_data",
"comment":"JSON data, intended for localizing auto-generated comments. This holds structured data that is intended to be used to provide localized versions of automatically-generated comments. When not empty, comment_text should be the generated comment localized using the wiki's content language.",
"comment":"Slots represent an n:m relation between revisions and content objects. A content object can have a specific \"role\" in one or more revisions. Each revision can have multiple content objects, each having a different role.",
"columns":[
{
"name":"slot_revision_id",
"comment":"reference to rev_id or ar_rev_id",
"type":"bigint",
"options":{"unsigned":true,"notnull":true}
},
{
"name":"slot_role_id",
"comment":"reference to role_id",
"type":"smallint",
"options":{"unsigned":true,"notnull":true}
},
{
"name":"slot_content_id",
"comment":"reference to content_id",
"type":"bigint",
"options":{"unsigned":true,"notnull":true}
},
{
"name":"slot_origin",
"comment":"The revision ID of the revision that originated the slot's content. To find revisions that changed slots, look for slot_origin = slot_revision_id. TODO: Is that actually true? Rollback seems to violate it by setting slot_origin to an older rev_id. Undeletions could result in the same situation.",
"comment":"User preferences and perhaps other fun stuff. :) Replaces the old user.user_options blob, with a couple nice properties: 1) We only store non-default settings, so changes to the defaults are now reflected for everybody, not just new accounts. 2) We can more easily do bulk lookups, statistics, or modifications of saved options since it's a sane table structure.",
"columns":[
{
"name":"up_user",
"comment":"Foreign key to user.user_id",
"type":"integer",
"options":{"unsigned":true,"notnull":true}
},
{
"name":"up_property",
"comment":"Name of the option being saved. This is indexed for bulk lookup.",
"comment":"The content table represents content objects. It's primary purpose is to provide the necessary meta-data for loading and interpreting a serialized data blob to create a content object.",
"comment":"Nominal size of the content object (not necessarily of the serialized blob)",
"type":"integer",
"options":{"notnull":true,"unsigned":true}
},
{
"name":"content_sha1",
"comment":"Nominal hash of the content object (not necessarily of the serialized blob)",
"type":"binary",
"options":{"notnull":true,"length":32}
},
{
"name":"content_model",
"comment":"reference to model_id. Note the content format isn't specified; it should be assumed to be in the default format for the model unless auto-detected otherwise.",
"comment":"Table caching which local files a module depends on that aren't registered directly, used for fast retrieval of file dependency. Currently only used for tracking images that CSS depends on",
"columns":[
{
"name":"md_module",
"comment":"Module name",
"type":"binary",
"options":{"notnull":true,"length":255}
},
{
"name":"md_skin",
"comment":"Module context vary (includes skin and language; called \"md_skin\" for legacy reasons)",
"comment":"For each redirect, this table contains exactly one row defining its target.\nRedirect targets are key to page_namespace/page_title of the target page.\nThe target page may or may not exist, and due to renames\nand deletions may refer to different page records as time\ngoes by.",
"columns":[
{
"name":"rd_from",
"comment":"Key to the page_id of the redirect page",
"comment":"Track page-to-page hyperlinks within the wiki. The target page may or may not exist, and due to renames and deletions may refer to different page records as time goes by.",
"columns":[
{
"name":"pl_from",
"comment":"Key to the page_id of the page containing the link.",