Manual:text table/ja

From MediaWiki.org
Jump to: navigation, search
Manual:Contents MediaWiki データベース レイアウト text table/ja


MediaWiki バージョン: 1.5


text テーブルは個々のページリビジョンのウィキテキストを保持します。Postgres または Oracle を使用する場合、このテーブルは pagecontent と命名されます。

フィールド名は MediaWiki 1.4 以前での 'Old' revisions テーブル からの繰越しです。

If you updated your wiki from MediaWiki 1.4 or older to a newer version, and if you have then run update.php at least once, you will still have old columns in the text table, whose contents have been migrated to the page table and the revision table (content is copied, not cut). These columns in the text table will not be used anymore. All fields in the text table except old_id, old_text and old_flags are not needed anymore and can be safely deleted.

スキーマの概要[edit | edit source]

MediaWiki バージョン: 1.19
mysql> describe text;
+-----------+------------------+------+-----+---------+----------------+
| Field     | Type             | Null | Key | Default | Extra          |
+-----------+------------------+------+-----+---------+----------------+
| old_id    | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| old_text  | mediumblob       | NO   |     | NULL    |                |
| old_flags | tinyblob         | NO   |     | NULL    |                |
+-----------+------------------+------+-----+---------+----------------+


MediaWiki バージョン: 1.9
MediaWiki バージョン: 1.8
mysql> describe text;
+-----------+-----------------+------+-----+---------+----------------+
| Field     | Type            | Null | Key | Default | Extra          |
+-----------+-----------------+------+-----+---------+----------------+
| old_id    | int(8) unsigned | NO   | PRI | NULL    | auto_increment |
| old_text  | mediumblob      | NO   |     | NULL    |                |
| old_flags | tinyblob        | NO   |     | NULL    |                |
+-----------+-----------------+------+-----+---------+----------------+
3 rows in set

フィールド[edit | edit source]

old_id[edit | edit source]

revision.rev_text_id in revision table is a key to this column. (In MediaWiki 1.5+, archive.ar_text_id is also a key to this column.)

old_text[edit | edit source]

ページのウィキテキスト。

old_flags[edit | edit source]

フラグをカンマ区切りで列挙したもの。Contains the following possible values:

gzip テキストは PHP の gzdeflate() 関数で圧縮されています。
注 : If the $wgCompressRevisions option is on, new rows (=current revisions) will be gzipped transparently at save time. Previous revisions can also be compressed by using the script compressOld.php
utf-8 テキストは UTF-8 で格納されています。
注 : If the $wgLegacyEncoding option is on, rows *without* this flag will be converted to UTF-8 transparently at load time.
object テキスト フィールドに、シリアライズされた PHP オブジェクトが格納されています。
注 : The object either contains multiple versions compressed together to achieve a better compression ratio, or it refers to another row where the text can be found.
external Text was stored in an external location specified by old_text

関連項目[edit | edit source]

データベース エンジン: MySQLPostgreSQLSQLite
技術文書: スキーマ (テーブル) – API property associationsフィールド接頭辞Template:Enlink/list1Primary key storage in other fieldsウィキメディアの拡張機能の表 /en
設定: 設定共有 /en
開発: アクセス最適化 /enPolicy /en更新プログラムTemplate:Enlink/list1拡張機能スキーマの更新 /enパッチ ファイル /en
コア テーブル: archivecategorycategorylinkschange_tagconfigexternallinksfilearchivehitcounterimageimagelinksinterwikiiwlinksipblocksjobl10n_cachelanglinkslogginglog_searchmsg_resourcemsg_resource_linksmodule_depsobjectcacheoldimagepagepagelinkspage_propspage_restrictionsprotected_titlesquerycachequerycachetwoquerycache_inforecentchangesredirectrevisionsearchindexsitessite_statstag_summarytemplatelinkstexttranscacheupdateloguploadstashuseruser_former_groupsuser_groupsuser_newtalkuser_propertiesvalid_tagwatchlist
言語: English  • 日本語