2 -- patch-oi_metadata.sql
4 -- Add data to allow for direct reference to old images
5 -- Some re-indexing here.
6 -- Old images can be included into pages effeciently now.
9 ALTER TABLE /*$wgDBprefix*/oldimage
11 ADD INDEX oi_name_timestamp (oi_name,oi_timestamp),
12 ADD INDEX oi_name_archive_name (oi_name,oi_archive_name(14)),
13 ADD oi_metadata mediumblob NOT NULL,
14 ADD oi_media_type ENUM("UNKNOWN", "BITMAP", "DRAWING", "AUDIO", "VIDEO", "MULTIMEDIA", "OFFICE", "TEXT", "EXECUTABLE", "ARCHIVE") default NULL,
15 ADD oi_major_mime ENUM("unknown", "application", "audio", "image", "text", "video", "message", "model", "multipart") NOT NULL default "unknown",
16 ADD oi_minor_mime varbinary(32) NOT NULL default "unknown",
17 ADD oi_deleted tinyint unsigned NOT NULL default '0';