"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.",
"comment":"Track template inclusions. 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":"tl_from",
"comment":"Key to the page_id of the page containing the link.",
"comment":"Track links to images *used inline* We don't distinguish live from broken links here, so they do not need to be changed on upload/removal.",
"columns":[
{
"name":"il_from",
"comment":"Key to page_id of the page containing the image / media link.",
"comment":"Track all existing categories. Something is a category if 1) it has an entry somewhere in categorylinks, or 2) it has a description page. Categories might not have corresponding pages, so they need to be tracked separately. The numbers of member pages (including categories and media), subcategories, and Image: namespace members, respectively are included in this table too. These are signed to make underflow more obvious. We make the first number include the second two for better sorting: subtracting for display is easy, adding for ordering is not.",
"comment":"Name of the category, in the same form as page_title (with underscores). If there is a category page corresponding to this category, by definition, it has this name (in the Category namespace).",
"comment":"User permissions have been broken out to a separate table; this allows sites with a shared user table to have different permissions assigned to a user in each project. This table replaces the old user_rights field which used a comma-separated blob.",
"comment":"Group names are short symbolic string keys. The set of group names is open-ended, though in practice only some predefined ones are likely to be used. At runtime $wgGroupPermissions will associate group keys with particular permissions. A user will have the combined permissions of any group they're explicitly in, plus the implicit '*' and 'user' groups.",
"comment":"Timestamp used to send notification e-mails and show 'updated since last visit' markers. Set to NULL when the user visits the latest revision of the page, which means that they should be sent an e-mail on the next change.",
"comment":"Global identifier for the site, ie 'enwiktionary'",
"options":{"notnull":true,"length":64}
},
{
"name":"site_type",
"type":"binary",
"comment":"Type of the site, ie 'mediawiki'",
"options":{"notnull":true,"length":32}
},
{
"name":"site_group",
"type":"binary",
"comment":"Group of the site, ie 'wikipedia'",
"options":{"notnull":true,"length":32}
},
{
"name":"site_source",
"type":"binary",
"comment":"Source of the site data, ie 'local', 'wikidata', 'my-magical-repo'",
"options":{"notnull":true,"length":32}
},
{
"name":"site_language",
"type":"binary",
"comment":"Language code of the sites primary language.",
"options":{"notnull":true,"length":35}
},
{
"name":"site_protocol",
"type":"binary",
"comment":"Protocol of the site, ie 'http://', 'irc://', '//'. This field is an index for lookups and is build from type specific data in site_data.",
"options":{"notnull":true,"length":32}
},
{
"name":"site_domain",
"type":"string",
"comment":"Domain of the site in reverse order, ie 'org.mediawiki.www.'. This field is an index for lookups and is build from type specific data in site_data.",
"options":{"notnull":true,"length":255}
},
{
"name":"site_data",
"type":"blob",
"comment":"Type dependent site data.",
"options":{"notnull":true,"length":65530}
},
{
"name":"site_forward",
"type":"mwtinyint",
"comment":"If site.tld/path/key:pageTitle should forward users to the page on the actual site, where \"key\" is the local identifier.",
"options":{"notnull":true,"length":1}
},
{
"name":"site_config",
"type":"blob",
"comment":"Type dependent site config. For instance if template transclusion should be allowed if it's a MediaWiki.",
"comment":"The interwiki prefix, (e.g. \"Meatball\", or the language prefix \"de\")",
"options":{"length":32,"notnull":true}
},
{
"name":"iw_url",
"type":"blob",
"comment":"The URL of the wiki, with \"$1\" as a placeholder for an article name. Any spaces in the name will be transformed to underscores before insertion.",
"options":{"notnull":true,"length":65530}
},
{
"name":"iw_api",
"type":"blob",
"comment":"The URL of the file api.php",
"options":{"notnull":true,"length":65530}
},
{
"name":"iw_wikiid",
"type":"string",
"comment":"The name of the database (for a connection to be established with LBFactory::getMainLB( 'wikiid' ))",
"options":{"notnull":true,"length":64}
},
{
"name":"iw_local",
"type":"mwtinyint",
"comment":"A boolean value indicating whether the wiki is in this project (used, for example, to detect redirect loops)",
"options":{"notnull":true,"length":1}
},
{
"name":"iw_trans",
"type":"mwtinyint",
"comment":"Boolean value indicating whether interwiki transclusions are allowed.",