summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-oi_metadata.sql
blob: df043c553604798346ef8422d697f0ef426ee6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--
-- patch-oi_metadata.sql
--
-- Add data to allow for direct reference to old images
-- Some re-indexing here.
-- Old images can be included into pages effeciently now.
--

ALTER TABLE /*$wgDBprefix*/oldimage
   DROP INDEX oi_name,
   ADD INDEX oi_name_timestamp (oi_name,oi_timestamp),
   ADD INDEX oi_name_archive_name (oi_name,oi_archive_name(14)),
   ADD oi_metadata mediumblob NOT NULL,
   ADD oi_media_type ENUM("UNKNOWN", "BITMAP", "DRAWING", "AUDIO", "VIDEO", "MULTIMEDIA", "OFFICE", "TEXT", "EXECUTABLE", "ARCHIVE") default NULL,
   ADD oi_major_mime ENUM("unknown", "application", "audio", "image", "text", "video", "message", "model", "multipart") NOT NULL default "unknown",
   ADD oi_minor_mime varbinary(32) NOT NULL default "unknown",
   ADD oi_deleted tinyint unsigned NOT NULL default '0';