summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB/Schema/Mysql.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-12-11 09:26:48 +0100
committermkanat%bugzilla.org <>2007-12-11 09:26:48 +0100
commit961cc62c23185442870583a9e9f61c55a9548428 (patch)
treeb3c424ea82b56e2d5641574a124bb8ea708bb7d2 /Bugzilla/DB/Schema/Mysql.pm
parenteb08f76a0dbac980de6792106537b6fa5d6fbe85 (diff)
downloadbugzilla-961cc62c23185442870583a9e9f61c55a9548428.tar.gz
bugzilla-961cc62c23185442870583a9e9f61c55a9548428.tar.xz
Bug 153129: Bugzilla uses "mediumtext" as a DB data type when it's not necessary
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> and Max Kanat-Alexander <mkanat@bugzilla.org> r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/DB/Schema/Mysql.pm')
-rw-r--r--Bugzilla/DB/Schema/Mysql.pm3
1 files changed, 2 insertions, 1 deletions
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',