Manual:Oldimage table/ja

このテーブルは、ファイルの過去の版についての情報を保持します. これは、既存のファイルの新しいバージョンがウィキにアップロードされる時に記録されます. これらのファイルはフォルダー /image/archive に移されます. Information on deleted images however will not be stored in the oldimage table; on deletion information is moved to the instead.

関連項目:

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

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

oi_size
File size in bytes. Comparable to.

oi_width
Image width, in pixels. Comparable to.

oi_height
Image height, in pixels. Comparable to.

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. .

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.

oi_description_id and the comment table should be used instead!

oi_description_id
This is a foreign key to in the  table.

oi_user
of the user who uploaded the file. Comparable to.

oi_user_text
元のアップロード者の名前. Comparable to.

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

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

oi_media_type
Possibilities are: UNKNOWN, BITMAP, DRAWING, AUDIO, VIDEO, MULTIMEDIA, OFFICE, TEXT, EXECUTABLE, ARCHIVE

Comparable to.

oi_major_mime
Possibilities are: unknown, application, audio, chemical, image, message, model, multipart, text, video

Comparable to.

oi_minor_mime
例: jpeg, gif, png, etc.

Comparable to.

oi_deleted
revdeleted

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.

スキーマの要約
DESCRIBE oldimage; +---+-+--+-++---+ +---+-+--+-++---+ +---+-+--+-++---+
 * Field            | Type                                                                                                        | Null | Key | Default        | Extra |
 * oi_name          | varchar(255)                                                                                                | NO   | MUL |                |       |
 * oi_archive_name  | varchar(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_id | bigint(20) unsigned                                                                                        | NO   |     | NULL           |       |
 * oi_user          | int(10) unsigned                                                                                            | NO   |     | 0              |       |
 * oi_user_text     | varchar(255)                                                                                                | NO   | MUL |                |       |
 * oi_actor         | bigint(20) unsigned                                                                                         | NO   | MUL | 0              |       |
 * oi_timestamp     | binary(14)                                                                                                  | NO   |     |                |       |
 * oi_metadata      | mediumblob                                                                                                  | NO   |     | NULL           |       |
 * oi_media_type    | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  |     | NULL           |       |
 * oi_major_mime    | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')       | NO   |     | unknown        |       |
 * oi_minor_mime    | varbinary(100)                                                                                              | NO   |     | unknown        |       |
 * oi_deleted       | tinyint(3) unsigned                                                                                         | NO   |     | 0              |       |
 * oi_sha1          | varbinary(32)                                                                                               | NO   | MUL |                |       |

DESCRIBE oldimage; +---+-+--+-++---+ +---+-+--+-++---+ +---+-+--+-++---+
 * Field            | Type                                                                                                        | Null | Key | Default        | Extra |
 * oi_name          | varchar(255)                                                                                                | NO   | MUL |                |       |
 * oi_archive_name  | varchar(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   | varbinary(767)                                                                                              | NO   |     |                |       |
 * oi_description_id | bigint(20) unsigned                                                                                        | NO   |     | 0              |       |
 * oi_user          | int(10) unsigned                                                                                            | NO   |     | 0              |       |
 * oi_user_text     | varchar(255)                                                                                                | NO   | MUL |                |       |
 * oi_actor         | bigint(20) unsigned                                                                                         | NO   | MUL | 0              |       |
 * oi_timestamp     | binary(14)                                                                                                  | NO   |     |                |       |
 * oi_metadata      | mediumblob                                                                                                  | NO   |     | NULL           |       |
 * oi_media_type    | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  |     | NULL           |       |
 * oi_major_mime    | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')       | NO   |     | unknown        |       |
 * oi_minor_mime    | varbinary(100)                                                                                              | NO   |     | unknown        |       |
 * oi_deleted       | tinyint(3) unsigned                                                                                         | NO   |     | 0              |       |
 * oi_sha1          | varbinary(32)                                                                                               | NO   | MUL |                |       |

DESCRIBE oldimage; +---+-+--+-++---+ +---+-+--+-++---+ +---+-+--+-++---+
 * Field            | Type                                                                                                        | Null | Key | Default        | Extra |
 * oi_name          | varchar(255)                                                                                                | NO   | MUL |                |       |
 * oi_archive_name  | varchar(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   | varbinary(767)                                                                                              | NO   |     |                |       |
 * oi_description_id | bigint(20) unsigned                                                                                        | NO   |     | 0              |       |
 * oi_user          | int(10) unsigned                                                                                            | NO   |     | 0              |       |
 * oi_user_text     | varchar(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','3D') | YES  |     | NULL           |       |
 * oi_major_mime    | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')       | NO   |     | unknown        |       |
 * oi_minor_mime    | varbinary(100)                                                                                              | NO   |     | unknown        |       |
 * oi_deleted       | tinyint(3) unsigned                                                                                         | NO   |     | 0              |       |
 * oi_sha1          | varbinary(32)                                                                                               | NO   | MUL |                |       |

DESCRIBE oldimage; +-++--+-++---+ +-++--+-++---+ +-++--+-++---+
 * Field          | Type                                                                                                   | Null | Key | Default        | Extra |
 * oi_name        | varchar(255)                                                                                           | NO   | MUL |                |       |
 * oi_archive_name | varchar(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 | varbinary(767)                                                                                         | NO   |     | NULL           |       |
 * oi_user        | int(10) unsigned                                                                                       | NO   |     | 0              |       |
 * oi_user_text   | varchar(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','chemical')  | NO   |     | unknown        |       |
 * oi_minor_mime  | varbinary(100)                                                                                         | NO   |     | unknown        |       |
 * oi_deleted     | tinyint(3) unsigned                                                                                    | NO   |     | 0              |       |
 * oi_sha1        | varbinary(32)                                                                                          | NO   | MUL |                |       |

DESCRIBE oldimage; +-++--+-+-+---+ | Field          | Type                                                                                                   | Null | Key | Default | Extra | +-++--+-+-+---+ | oi_name        | varchar(255) binary                                                                                    | NO   | MUL | NULL    |       | | oi_archive_name | varchar(255) binary                                                                                   | 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) binary                                                                                    | 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','chemical')  | NO   |     | unknown |       | | oi_minor_mime  | varbinary(100)                                                                                         | NO   |     | unknown |       | | oi_deleted     | tinyint(3) unsigned                                                                                    | NO   |     | 0       |       | | oi_sha1        | varbinary(32)                                                                                          | NO   | MUL | NULL    |       | +-++--+-+-+---+

DESCRIBE oldimage; +-++--+-+-+---+ | Field          | Type                                                                                                   | Null | Key | Default | Extra | +-++--+-+-+---+ | oi_name        | varchar(255) binary                                                                                    | NO   | MUL | NULL    |       | | oi_archive_name | varchar(255) binary                                                                                   | 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) binary                                                                                    | 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(100)                                                                                         | NO   |     | unknown |       | | oi_deleted     | tinyint(3) unsigned                                                                                    | NO   |     | 0       |       | | oi_sha1        | varbinary(32)                                                                                          | NO   | MUL | NULL    |       | +-++--+-+-+---+

DESCRIBE oldimage; +-++--+-+-+---+ | Field          | Type                                                                                                   | Null | Key | Default | Extra | +-++--+-+-+---+ | oi_name        | varchar(255) binary                                                                                    | NO   | MUL | NULL    |       | | oi_archive_name | varchar(255) binary                                                                                   | 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) binary                                                                                    | 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; +-+-+--+-+-+---+ | Field          | Type                | Null | Key | Default | Extra | +-+-+--+-+-+---+ | oi_name        | varchar(255) binary | NO   | MUL | NULL    |       | | oi_archive_name | varchar(255) binary | 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) binary | NO   |     | NULL    |       | | oi_timestamp   | binary(14)          | NO   |     | NULL    |       | +-+-+--+-+-+---+

DESCRIBE oldimage;</tt> +-+-+--+-+-+---+ | Field          | Type                | Null | Key | Default | Extra | +-+-+--+-+-+---+ | oi_name        | varchar(255) binary | NO   | MUL | NULL    |       | | oi_archive_name | varchar(255) binary | 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) binary | NO   |     | NULL    |       | | oi_timestamp   | char(14) binary     | NO   |     | NULL    |       | +-+-+--+-+-+---+

DESCRIBE oldimage;</tt> +-+-+--+-+-+---+ | Field          | Type                | Null | Key | Default | Extra | +-+-+--+-+-+---+ | oi_name        | varchar(255) binary | NO   | MUL | NULL    |       | | oi_archive_name | varchar(255) binary | NO  |     | NULL    |       | | oi_size        | int(8) unsigned     | NO   |     | 0       |       | | oi_description | tinyblob            | NO   |     | NULL    |       | | oi_user        | int(5) unsigned     | NO   |     | 0       |       | | oi_user_text   | varchar(255) binary | NO   |     | NULL    |       | | oi_timestamp   | char(14) binary     | NO   |     | NULL    |       | +-+-+--+-+-+---+