From 8f416baead93a48e5799e44b8bd2e2c4859f4e04 Mon Sep 17 00:00:00 2001
From: Pierre Schmitz <pierre@archlinux.de>
Date: Fri, 14 Sep 2007 13:18:58 +0200
Subject: auf Version 1.11 aktualisiert; Login-Bug behoben

---
 maintenance/archives/patch-oi_metadata.sql | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 maintenance/archives/patch-oi_metadata.sql

(limited to 'maintenance/archives/patch-oi_metadata.sql')

diff --git a/maintenance/archives/patch-oi_metadata.sql b/maintenance/archives/patch-oi_metadata.sql
new file mode 100644
index 00000000..bc848878
--- /dev/null
+++ b/maintenance/archives/patch-oi_metadata.sql
@@ -0,0 +1,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';
-- 
cgit v1.2.3-54-g00ecf

