Manual:Text table

The text table holds the wikitext of individual page revisions. If using Postgres or Oracle, this table is named pagecontent. extensions>Special:MyLanguage/Manual:Extensions|Extensions may also store data here.

Field names are a holdover from the  revisions table in MediaWiki 1.4 and earlier.

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 ' table and the ' 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.

Text content can be compressed or man>Special:MyLanguage/Manual:External Storage|stored externally, and thus difficult to get from this table. The fetchText.php maintenance script can be used to retrieve the text of a given.

Schema summary
+---+--+--+-+-++ +---+--+--+-+-++ +---+--+--+-+-++
 * 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    |                |

+---+-+--+-+-++ +---+-+--+-+-++ +---+-+--+-+-++
 * 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    |                |

+---+-+--+-+-++ +---+-+--+-+-++ +---+-+--+-+-++
 * 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    |                |

old_id
Unique integer used to identify each text.  in  table and  table.

<tvar|ar_text_id></> are keys to this column.

old_text
The wikitext of the page, or a pointer to man>Special:MyLanguage/Manual:External Storage</>|external storage of the form of.

old_flags
Comma-separated list of flags.

Contains the following possible values:


 * {|class="wikitable"


 * | Text is compressed with PHP's <tvar|gzdeflate> </> function.
 * | Text was stored as UTF-8.
 * | Text field contained a serialized PHP object.
 * | Text was stored in an man>Special:MyLanguage/Manual:External Storage</>|external location specified by old_text.
 * }
 * | Text field contained a serialized PHP object.
 * | Text was stored in an man>Special:MyLanguage/Manual:External Storage</>|external location specified by old_text.
 * }
 * | Text was stored in an man>Special:MyLanguage/Manual:External Storage</>|external location specified by old_text.
 * }
 * | Text was stored in an man>Special:MyLanguage/Manual:External Storage</>|external location specified by old_text.
 * }

Extensions can add other custom flags.