Manual:Oldimage table/ja

このテーブルは画像の、過去のリビジョンについての情報を保持します. これは、既に存在している画像の新しいバージョンが wiki にアップロードされる時に記録されます. これらの画像は /image/archive のフォルダーに移されます.

関連項目: Filearchive table/ja

oi_name
画像の名称 (ファイルと記事、同じであるように思われます). Comparable to img_name.

oi_archive_name
画像の名称、それが過去のリビジョンになった時のタイムスタンプの接頭辞がつけられます

oi_size
File size in bytes. Comparable to img_size.

oi_width
Image width, in pixels. Comparable to img_width.

oi_height
Image height, in pixels. Comparable to img_height.

oi_bits
Bit-depth of GIF/PNG palette-based images (up to 16-bit). Non-palette images (JPEG/PNG/TIFF/SVG) are 0 or 8. All other files default to 0. img_bits.

oi_description
Description field given during upload. It's not the description page (associated File: wiki page), but the "summary" provided by the user in case of reupload. Comparable to img_description.

oi_user
User ID of who uploaded the file. Comparable to img_user.

oi_user_text
元のアップローダーの名前. Comparable to img_user_text.

oi_timestamp
元のファイルアップロードのタイムスタンプ. Comparable to img_timestamp.

oi_metadata
Serialized PHP array of the file's properties. Comparable to img_metadata.

oi_media_type
Possibilities are UNKNOWN, BITMAP, DRAWING, AUDIO, VIDEO, MULTIMEDIA, OFFICE, TEXT, EXECUTABLE, and ARCHIVE. Comparable to img_media_type.

oi_major_mime
Possibilities are unknown, application, audio, image, text, video, message, model, and multipart. Comparable to img_major_mime.

oi_minor_mime
E.g. jpeg, gif, png, etc. Comparable to img_minor_mime.

oi_deleted
??

oi_sha1
The SHA-1 hash of the file contents in base 36 format. includes/GlobalFunctions.php's wfBaseConvert is used to convert from base 16 (hexadecimal) to base 36 and then pad the result to 31 characters. Comparable to img_sha1.

スキーマ
mysql> describe oldimage; +-++--+-++---+ +-++--+-++---+ +-++--+-++---+
 * Field          | Type                                                                                                   | Null | Key | Default        | Extra |
 * oi_name        | varbinary(255)                                                                                         | NO   | MUL |                |       |
 * oi_archive_name | varbinary(255)                                                                                        | NO   |     |                |       |
 * oi_size        | int(10) unsigned                                                                                       | NO   |     | 0              |       |
 * oi_width       | int(11)                                                                                                | NO   |     | 0              |       |
 * oi_height      | int(11)                                                                                                | NO   |     | 0              |       |
 * oi_bits        | int(11)                                                                                                | NO   |     | 0              |       |
 * oi_description | tinyblob                                                                                               | NO   |     | NULL           |       |
 * oi_user        | int(10) unsigned                                                                                       | NO   |     | 0              |       |
 * oi_user_text   | varbinary(255)                                                                                         | NO   | MUL | NULL           |       |
 * oi_timestamp   | binary(14)                                                                                             | NO   |     |                |       |
 * oi_metadata    | mediumblob                                                                                             | NO   |     | NULL           |       |
 * oi_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL           |       |
 * oi_major_mime  | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown        |       |
 * oi_minor_mime  | varbinary(100)                                                                                         | NO   |     | unknown        |       |
 * oi_deleted     | tinyint(3) unsigned                                                                                    | NO   |     | 0              |       |
 * oi_sha1        | varbinary(32)                                                                                          | NO   | MUL |                |       |

describe oldimage; バージョン 1.18 において: +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * oi_name        | varbinary(255)                                                                                         | NO   |     |         |       |
 * oi_archive_name | varbinary(255)                                                                                        | NO   |     |         |       |
 * oi_size        | int(8) unsigned                                                                                        | NO   |     | 0       |       |
 * oi_width       | int(5)                                                                                                 | NO   |     | 0       |       |
 * oi_height      | int(5)                                                                                                 | NO   |     | 0       |       |
 * oi_bits        | int(3)                                                                                                 | NO   |     | 0       |       |
 * oi_description | tinyblob                                                                                               | NO   |     | NULL    |       |
 * oi_user        | int(5) unsigned                                                                                        | NO   |     | 0       |       |
 * oi_user_text   | varbinary(255)                                                                                         | NO   |     |         |       |
 * oi_timestamp   | varbinary(14)                                                                                          | NO   |     |         |       |
 * oi_metadata    | mediumblob                                                                                             | NO   |     | NULL    |       |
 * oi_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * oi_major_mime  | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown |       |
 * oi_minor_mime  | varbinary(32)                                                                                          | NO   |     | unknown |       |
 * oi_deleted     | tinyint(3) unsigned                                                                                    | NO   |     | 0       |       |
 * oi_sha1        | varbinary(32)                                                                                          | NO   |     |         |       |

describe oldimage; バージョン 1.16 において: +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * oi_name        | varchar(255)                                                                                           | NO   |     |         |       |
 * oi_archive_name | varchar(255)                                                                                          | NO   |     |         |       |
 * oi_size        | int(8) unsigned                                                                                        | NO   |     | 0       |       |
 * oi_width       | int(5)                                                                                                 | NO   |     | 0       |       |
 * oi_height      | int(5)                                                                                                 | NO   |     | 0       |       |
 * oi_bits        | int(3)                                                                                                 | NO   |     | 0       |       |
 * oi_description | tinyblob                                                                                               | NO   |     | NULL    |       |
 * oi_user        | int(5) unsigned                                                                                        | NO   |     | 0       |       |
 * oi_user_text   | varchar(255)                                                                                           | NO   |     |         |       |
 * oi_timestamp   | varchar(14)                                                                                            | NO   |     |         |       |
 * oi_metadata    | mediumblob                                                                                             | NO   |     | NULL    |       |
 * oi_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * oi_major_mime  | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown |       |
 * oi_minor_mime  | varchar(32)                                                                                            | NO   |     | unknown |       |
 * oi_deleted     | tinyint(3) unsigned                                                                                    | NO   |     | 0       |       |
 * oi_sha1        | varchar(32)                                                                                            | NO   |     |         |       |

describe oldimage; バージョン 1.12 において: +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * oi_name        | varchar(255)                                                                                           | NO   | MUL | NULL    |       |
 * oi_archive_name | varchar(255)                                                                                          | NO   |     | NULL    |       |
 * oi_size        | int(8) unsigned                                                                                        | NO   |     | 0       |       |
 * oi_width       | int(5)                                                                                                 | NO   |     | 0       |       |
 * oi_height      | int(5)                                                                                                 | NO   |     | 0       |       |
 * oi_bits        | int(3)                                                                                                 | NO   |     | 0       |       |
 * oi_description | tinyblob                                                                                               | NO   |     | NULL    |       |
 * oi_user        | int(5) unsigned                                                                                        | NO   |     | 0       |       |
 * oi_user_text   | varchar(255)                                                                                           | NO   | MUL | NULL    |       |
 * oi_timestamp   | char(14)                                                                                               | NO   |     | NULL    |       |
 * oi_metadata    | mediumblob                                                                                             | NO   |     | NULL    |       |
 * oi_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * oi_major_mime  | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown |       |
 * oi_minor_mime  | varbinary(32)                                                                                          | NO   |     | unknown |       |
 * oi_deleted     | tinyint(3) unsigned                                                                                    | NO   |     | 0       |       |
 * oi_sha1        | varbinary(32)                                                                                          | NO   | MUL | NULL    |       |

describe oldimage; バージョン 1.11 において: +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * oi_name        | varchar(255)                                                                                           | NO   | MUL | NULL    |       |
 * oi_archive_name | varchar(255)                                                                                          | NO   |     | NULL    |       |
 * oi_size        | int(10) unsigned                                                                                       | NO   |     | 0       |       |
 * oi_width       | int(11)                                                                                                | NO   |     | 0       |       |
 * oi_height      | int(11)                                                                                                | NO   |     | 0       |       |
 * oi_bits        | int(11)                                                                                                | NO   |     | 0       |       |
 * oi_description | tinyblob                                                                                               | NO   |     | NULL    |       |
 * oi_user        | int(10) unsigned                                                                                       | NO   |     | 0       |       |
 * oi_user_text   | varchar(255)                                                                                           | NO   | MUL | NULL    |       |
 * oi_timestamp   | binary(14)                                                                                             | NO   |     | NULL    |       |
 * oi_metadata    | mediumblob                                                                                             | NO   |     | NULL    |       |
 * oi_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * oi_major_mime  | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown |       |
 * oi_minor_mime  | varbinary(32)                                                                                          | NO   |     | unknown |       |
 * oi_deleted     | tinyint(3) unsigned                                                                                    | NO   |     | 0       |       |
 * oi_sha1        | varbinary(32)                                                                                          | NO   | MUL | NULL    |       |

describe oldimage; バージョン 1.8 において: +-+-+--+-+-+---+ +-+-+--+-+-+---+ +-+-+--+-+-+---+
 * Field          | Type            | Null | Key | Default | Extra |
 * oi_name        | varchar(255)    | NO   | MUL | NULL    |       |
 * oi_archive_name | varchar(255)   | NO   |     | NULL    |       |
 * oi_size        | int(8) unsigned | NO   |     | 0       |       |
 * oi_width       | int(5)          | NO   |     | 0       |       |
 * oi_height      | int(5)          | NO   |     | 0       |       |
 * oi_bits        | int(3)          | NO   |     | 0       |       |
 * oi_description | tinyblob        | NO   |     | NULL    |       |
 * oi_user        | int(5) unsigned | NO   |     | 0       |       |
 * oi_user_text   | varchar(255)    | NO   |     | NULL    |       |
 * oi_timestamp   | char(14)        | NO   |     | NULL    |       |

describe oldimage; バージョン 1.5 において: +-+-+--+-+-+---+ +-+-+--+-+-+---+ +-+-+--+-+-+---+
 * Field          | Type            | Null | Key | Default | Extra |
 * oi_name        | varchar(255)    | NO   | MUL |         |       |
 * oi_archive_name | varchar(255)   | NO   |     |         |       |
 * oi_size        | int(8) unsigned | NO   |     | 0       |       |
 * oi_width       | int(5)          | NO   |     | 0       |       |
 * oi_height      | int(5)          | NO   |     | 0       |       |
 * oi_bits        | int(3)          | NO   |     | 0       |       |
 * oi_description | tinyblob        | NO   |     |         |       |
 * oi_user        | int(5) unsigned | NO   |     | 0       |       |
 * oi_user_text   | varchar(255)    | NO   |     |         |       |
 * oi_timestamp   | char(14)        | NO   |     |         |       |

describe oldimage; バージョン 1.4 において: +-+-+--+-+-+---+ | Field          | Type                | Null | Key | Default | Extra | +-+-+--+-+-+---+ | oi_name        | varchar(255) binary |      | MUL |         |       | | oi_archive_name | varchar(255) binary |     |     |         |       | | oi_size        | int(8) unsigned     |      |     | 0       |       | | oi_description | tinyblob            |      |     |         |       | | oi_user        | int(5) unsigned     |      |     | 0       |       | | oi_user_text   | varchar(255) binary |      |     |         |       | | oi_timestamp   | varchar(14) binary  |      |     |         |       | +-+-+--+-+-+---+