From 961cc62c23185442870583a9e9f61c55a9548428 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 11 Dec 2007 08:26:48 +0000 Subject: Bug 153129: Bugzilla uses "mediumtext" as a DB data type when it's not necessary Patch By Xiaoou Wu and Max Kanat-Alexander r=mkanat, a=mkanat --- Bugzilla/DB/Schema/Mysql.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/DB/Schema/Mysql.pm') diff --git a/Bugzilla/DB/Schema/Mysql.pm b/Bugzilla/DB/Schema/Mysql.pm index c867dc0fc..300b1a0f1 100644 --- a/Bugzilla/DB/Schema/Mysql.pm +++ b/Bugzilla/DB/Schema/Mysql.pm @@ -81,6 +81,7 @@ use constant REVERSE_MAPPING => { SMALLINT => 'INT2', MEDIUMINT => 'INT3', INTEGER => 'INT4', + # All the other types have the same name in their abstract version # as in their db-specific version, so no reverse mapping is needed. }; @@ -111,7 +112,7 @@ sub _initialize { TINYTEXT => 'tinytext', MEDIUMTEXT => 'mediumtext', - TEXT => 'text', + LONGTEXT => 'mediumtext', LONGBLOB => 'longblob', -- cgit v1.2.3-65-gdbad