Manuel:table block

This page is a translated version of the page Manual:Block table and the translation is 85% complete.
Manuel:Contenu Schéma de base de données MédiaWiki table block
Version de MediaWiki :
1.42

La table block contient des informations sur les actions de blocage des comptes et des adresses IP. La table block et block_target remplacent l'acienne table ip_blocks .

Champs

bl_id

Clé primaire.

bl_target

La cible du bloc. Clé externe de block_target.bt_id.

bl_by_actor

Acteur qui a fait le blocage.

bl_reason_id

Clé pour comment_id. Commentaire textuel fait par le blocage.

bl_timestamp

Date de création (ou de mise à jour) au format standard AMJHMS. Les blocages d'adresses IP expirent automatiquement.

bl_anon_only

Si la valeur est 1, le blocage s'applique uniquement aux utilisateurs déconnectés et aux utilisateurs temporaires.

bl_create_account

Le blocage empêche la création de compte à partir des adresses IP correspondantes

bl_enable_autoblock

Le blocage déclenche les auto-blocages.

bl_expiry

Temps au bout duquel le blocage va expirer. Il peut être infini

bl_deleted

If true, this block causes the username to be hidden, and the expiry must be infinite. This is denormalized into rev_deleted and the other deleted bitfields. (T346716)

bl_block_email

Le blocage empêche l'utilisateur d'accéder à Special:Emailuser

bl_allow_usertalk

Le blocage permet aux utilisateurs d'éditer leur propre page de discussion

bl_parent_block_id

ID du blocage qui a provoqué l'existence de ce blocage. Autoblocks set this to the original block so that the original block being deleted also deletes the autoblocks.

bl_sitewide

Block user from editing any page on the site (other than their own user talk page).

Résumé du schéma

Version de MediaWiki :
1.42

DESCRIBE block;

+---------------------+---------------------+------+-----+---------+----------------+
| Field               | Type                | Null | Key | Default | Extra          |
+---------------------+---------------------+------+-----+---------+----------------+
| bl_id               | int(10) unsigned    | NO   | PRI | NULL    | auto_increment |
| bl_target           | int(10) unsigned    | NO   | MUL | NULL    |                |
| bl_by_actor         | bigint(20) unsigned | NO   |     | NULL    |                |
| bl_reason_id        | bigint(20) unsigned | NO   |     | NULL    |                |
| bl_timestamp        | binary(14)          | NO   | MUL | NULL    |                |
| bl_anon_only        | tinyint(1)          | NO   |     | 0       |                |
| bl_create_account   | tinyint(1)          | NO   |     | 1       |                |
| bl_enable_autoblock | tinyint(1)          | NO   |     | 1       |                |
| bl_expiry           | varbinary(14)       | NO   | MUL | NULL    |                |
| bl_deleted          | tinyint(1)          | NO   |     | 0       |                |
| bl_block_email      | tinyint(1)          | NO   |     | 0       |                |
| bl_allow_usertalk   | tinyint(1)          | NO   |     | 0       |                |
| bl_parent_block_id  | int(10) unsigned    | YES  | MUL | NULL    |                |
| bl_sitewide         | tinyint(1)          | NO   |     | 1       |                |
+---------------------+---------------------+------+-----+---------+----------------+

Les index

Version de MediaWiki :
1.42

SHOW INDEX IN block;

+-------+------------+--------------------+--------------+--------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name           | Seq_in_index | Column_name        | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-------+------------+--------------------+--------------+--------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| block |          0 | PRIMARY            |            1 | bl_id              | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| block |          1 | bl_timestamp       |            1 | bl_timestamp       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| block |          1 | bl_target          |            1 | bl_target          | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| block |          1 | bl_expiry          |            1 | bl_expiry          | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| block |          1 | bl_parent_block_id |            1 | bl_parent_block_id | A         |           0 |     NULL | NULL   | YES  | BTREE      |         |               |
+-------+------------+--------------------+--------------+--------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+