手册:数据库布局
Jump to navigation
Jump to search
- Schema redirects here; for information about the Schema: namespace, see Extension:EventLogging , and for the structure of extension.json, see Manual:Extension.json/Schema .
↑ 手冊:索引 | MediaWiki数据库布局 | database_layout table |
为任何MediaWiki版本创建MySQL/MariaDB 核心表的SQL代码——以及大量注释——可在maintenance/tables.sql源文件中找到。比较重要的表可能是page 、revision 、text 以及user 。
版本历史
The following table depicts the range of MediaWiki versions over which each table has existed in the schema. Red rows indicate tables that are no longer used by the core nor added by the installer as of a particular version. They might however still be used by extensions. Note, table headings are repeated every 10 rows for clarity.
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
actor | |||||||||||||||||||||||||||||||||||
archive | |||||||||||||||||||||||||||||||||||
blobs | |||||||||||||||||||||||||||||||||||
bot_passwords | |||||||||||||||||||||||||||||||||||
broken | |||||||||||||||||||||||||||||||||||
category | |||||||||||||||||||||||||||||||||||
category | |||||||||||||||||||||||||||||||||||
change_ | |||||||||||||||||||||||||||||||||||
change_ | |||||||||||||||||||||||||||||||||||
comment | |||||||||||||||||||||||||||||||||||
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
content | |||||||||||||||||||||||||||||||||||
content_ | |||||||||||||||||||||||||||||||||||
cur | |||||||||||||||||||||||||||||||||||
external | |||||||||||||||||||||||||||||||||||
external_ | |||||||||||||||||||||||||||||||||||
file | |||||||||||||||||||||||||||||||||||
hit | |||||||||||||||||||||||||||||||||||
image | |||||||||||||||||||||||||||||||||||
image | |||||||||||||||||||||||||||||||||||
image_ | |||||||||||||||||||||||||||||||||||
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
interwiki | |||||||||||||||||||||||||||||||||||
ip_changes | |||||||||||||||||||||||||||||||||||
ipblocks | |||||||||||||||||||||||||||||||||||
ipblocks_ | |||||||||||||||||||||||||||||||||||
ipblocks_ | |||||||||||||||||||||||||||||||||||
iwlinks | |||||||||||||||||||||||||||||||||||
job | |||||||||||||||||||||||||||||||||||
l10n_ | |||||||||||||||||||||||||||||||||||
langlinks | |||||||||||||||||||||||||||||||||||
links | |||||||||||||||||||||||||||||||||||
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
linkscc | |||||||||||||||||||||||||||||||||||
logging | |||||||||||||||||||||||||||||||||||
log_ | |||||||||||||||||||||||||||||||||||
math | |||||||||||||||||||||||||||||||||||
module_ | |||||||||||||||||||||||||||||||||||
msg_ | |||||||||||||||||||||||||||||||||||
msg_ | |||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||
old | |||||||||||||||||||||||||||||||||||
oldimage | |||||||||||||||||||||||||||||||||||
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
page | |||||||||||||||||||||||||||||||||||
pagelinks | |||||||||||||||||||||||||||||||||||
page_ | |||||||||||||||||||||||||||||||||||
page_ | |||||||||||||||||||||||||||||||||||
profiling | |||||||||||||||||||||||||||||||||||
protected_ | |||||||||||||||||||||||||||||||||||
querycache | |||||||||||||||||||||||||||||||||||
querycachetwo | |||||||||||||||||||||||||||||||||||
querycache_ | |||||||||||||||||||||||||||||||||||
recentchanges | |||||||||||||||||||||||||||||||||||
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
redirect | |||||||||||||||||||||||||||||||||||
revision | |||||||||||||||||||||||||||||||||||
revision_ | |||||||||||||||||||||||||||||||||||
revision_ | |||||||||||||||||||||||||||||||||||
searchindex | |||||||||||||||||||||||||||||||||||
sites | |||||||||||||||||||||||||||||||||||
site_ | |||||||||||||||||||||||||||||||||||
site_ | |||||||||||||||||||||||||||||||||||
slots | |||||||||||||||||||||||||||||||||||
slot_ | |||||||||||||||||||||||||||||||||||
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
tag_ | |||||||||||||||||||||||||||||||||||
templatelinks | |||||||||||||||||||||||||||||||||||
text | |||||||||||||||||||||||||||||||||||
trackbacks | |||||||||||||||||||||||||||||||||||
transcache | |||||||||||||||||||||||||||||||||||
updatelog | |||||||||||||||||||||||||||||||||||
uploadstash | |||||||||||||||||||||||||||||||||||
user | |||||||||||||||||||||||||||||||||||
user_ | |||||||||||||||||||||||||||||||||||
user_ | |||||||||||||||||||||||||||||||||||
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
user_ | |||||||||||||||||||||||||||||||||||
user_ | |||||||||||||||||||||||||||||||||||
user_ | |||||||||||||||||||||||||||||||||||
valid_ | |||||||||||||||||||||||||||||||||||
validate | |||||||||||||||||||||||||||||||||||
watchlist | |||||||||||||||||||||||||||||||||||
watchlist_expiry | |||||||||||||||||||||||||||||||||||
1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | 1.23 | 1.24 | 1.25 | 1.26 | 1.27 | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33 | 1.34 | 1.35 | master |
数据库管理系统
从Git中查看最新的MariaDB/MySQL兼容版本:maintenance/tables.sql。
如果使用PostgreSQL ,則應改為查看maintenance/postgres/tables.sql文件。
如需使用Microsoft SQL Server,请参考maintenance/mssql/tables.sql。 (在1.34版本中已移除)
如需使用Oracle,请参考maintenance/oracle/tables.sql。 (在1.34版本中已移除)
参见
- Diagram instructions, documents how to update the diagram