手册:User rights表

From mediawiki.org
This page is a translated version of the page Manual:User rights table and the translation is 83% complete.
手冊:索引 MediaWiki数据库布局 user_rights表
MediaWiki版本:
1.4

user_rights表在MediaWiki 1.5版本中未被使用,并且可以安全删除。

  • ur_user:用户的user_id
  • ur_rights:用户的权限

架构摘要

MediaWiki版本:
1.4

DESCRIBE user_rights;

+-----------+-----------------+------+-----+---------+-------+
| Field     | Type            | Null | Key | Default | Extra |
+-----------+-----------------+------+-----+---------+-------+
| ur_user   | int(5) unsigned | NO   | PRI | NULL    |       |
| ur_rights | tinyblob        | NO   |     | NULL    |       |
+-----------+-----------------+------+-----+---------+-------+

Indexes

MediaWiki版本:
1.4

SHOW INDEX IN user_rights;

+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table       | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| user_rights |          0 | ur_user  |            1 | ur_user     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+