Manual:user_properties/pt table

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Manual:Conteúdos <translate> MediaWiki database layout</translate> <translate> <tvar name=1>user_properties/pt</tvar> table</translate>
Versão MediaWiki:
<translate> ≥</translate> 1.16

A tabela user_properties guardas as preferências do utilizador . Esta substituiu a antiga user.user_options . Apenas são guardadas as definições não predefinidas; assim, as alterações às predefinições são agora refletidas para todos que não guardaram uma preferência alternativa, não apenas para as novas contas.

Campos

up_user

A chave externa para o campo user_id da tabela user .

up_property

As preferências do utilizador, consulte Manual:$wgDefaultUserOptions . Exemplos: gender, watchcreations

up_value

O valor da preferência.

Resumo de esquema

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.30
<translate> MediaWiki version:</translate>

DESCRIBE user_properties/pt;

+-------------+------------------+------+-----+---------+-------+
| Field       | Type             | Null | Key | Default | Extra |
+-------------+------------------+------+-----+---------+-------+
| up_user     | int(10) unsigned | NO   | PRI | NULL    |       |
| up_property | varbinary(255)   | NO   | PRI | NULL    |       |
| up_value    | blob             | YES  |     | NULL    |       |
+-------------+------------------+------+-----+---------+-------+
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.29</tvar> is unsupported version</translate>">
1.18 – 1.29
<translate> MediaWiki versions:</translate>

DESCRIBE user_properties/pt;

+-------------+----------------+------+-----+---------+-------+
| Field       | Type           | Null | Key | Default | Extra |
+-------------+----------------+------+-----+---------+-------+
| up_user     | int(11)        | NO   | PRI | NULL    |       |
| up_property | varbinary(255) | NO   | PRI | NULL    |       |
| up_value    | blob           | YES  |     | NULL    |       |
+-------------+----------------+------+-----+---------+-------+
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.17</tvar> is unsupported version</translate>">
1.16 – 1.17
<translate> MediaWiki versions:</translate>

DESCRIBE user_properties/pt;

+-------------+---------------+------+-----+---------+----------------+
| Field       | Type          | Null | Key | Default | Extra          |
+-------------+---------------+------+-----+---------+----------------+
| up_user     | int(11)       | NO   | PRI | NULL    |                |
| up_property | varbinary(32) | NO   | PRI | NULL    |                |
| up_value    | blob          | YES  |     | NULL    |                |
+-------------+---------------+------+-----+---------+----------------+

Indexes

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.36
<translate> MediaWiki version:</translate>

SHOW INDEX IN user_properties/pt;

+-----------------+------------+-------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table           | Non_unique | Key_name    | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-----------------+------------+-------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| user_properties |          0 | PRIMARY     |            1 | up_user     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| user_properties |          0 | PRIMARY     |            2 | up_property | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| user_properties |          1 | up_property |            1 | up_property | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+-----------------+------------+-------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+