summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB/Schema
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
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')
-rw-r--r--Bugzilla/DB/Schema/Mysql.pm3
-rw-r--r--Bugzilla/DB/Schema/Pg.pm2
2 files changed, 3 insertions, 2 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',
diff --git a/Bugzilla/DB/Schema/Pg.pm b/Bugzilla/DB/Schema/Pg.pm
index 7a951e2db..070c0b03e 100644
--- a/Bugzilla/DB/Schema/Pg.pm
+++ b/Bugzilla/DB/Schema/Pg.pm
@@ -75,7 +75,7 @@ sub _initialize {
TINYTEXT => 'varchar(255)',
MEDIUMTEXT => 'text',
- TEXT => 'text',
+ LONGTEXT => 'text',
LONGBLOB => 'bytea',