-- see http://www.iana.org/assignments/media-types/
img_minor_mime varchar(32) NOT NULL default "unknown"
);
-
--- img_type is no longer used, delete it
-ALTER TABLE /*$wgDBprefix*/image DROP COLUMN img_type;
\ No newline at end of file
echo "ok\n";
}
+function do_drop_img_type() {
+ global $wgDatabase;
+
+ if ($wgDatabase->fieldExists('image', 'img_type')) {
+ echo "Dropping unused img_type field in image table... ";
+ dbsource( "maintenance/archives/patch-drop_img_type.sql", $wgDatabase );
+ echo "ok\n";
+ } else {
+ echo "No img_type field in image table; Good.\n";
+ }
+}
+
function do_all_updates() {
global $wgNewTables, $wgNewFields, $wgRenamedTables;
do_namespace_size(); flush();
do_pagelinks_update(); flush();
-
+
+ do_drop_img_type(); flush();
+
initialiseMessages(); flush();
}