summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-06-26 18:41:41 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-06-26 18:41:41 +0200
commitc988473afb34914f8fb47d5b49711ccd6ec3fdbd (patch)
treec1c848c0097da8f10202c4a8b9303ed68ffb665a
parent5b3ea4d476084d47c99e3d2e9d409fea84c16831 (diff)
downloadbugzilla-c988473afb34914f8fb47d5b49711ccd6ec3fdbd.tar.gz
bugzilla-c988473afb34914f8fb47d5b49711ccd6ec3fdbd.tar.xz
Bug 762288 - Change bugs_activity.removed to match data type of bugs_activity.added
r/a=LpSolit
-rw-r--r--Bugzilla/DB/Schema.pm3
-rw-r--r--Bugzilla/Install/DB.pm5
2 files changed, 7 insertions, 1 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index 06d4a632d..fadc38fc5 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -338,7 +338,7 @@ use constant ABSTRACT_SCHEMA => {
REFERENCES => {TABLE => 'fielddefs',
COLUMN => 'id'}},
added => {TYPE => 'varchar(255)'},
- removed => {TYPE => 'TINYTEXT'},
+ removed => {TYPE => 'varchar(255)'},
comment_id => {TYPE => 'INT3',
REFERENCES => { TABLE => 'longdescs',
COLUMN => 'comment_id',
@@ -350,6 +350,7 @@ use constant ABSTRACT_SCHEMA => {
bugs_activity_bug_when_idx => ['bug_when'],
bugs_activity_fieldid_idx => ['fieldid'],
bugs_activity_added_idx => ['added'],
+ bugs_activity_removed_idx => ['removed'],
],
},
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index ef2b41e7d..ba656a769 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -673,6 +673,11 @@ sub update_table_definitions {
# 2012-04-15 Frank@Frank-Becker.de - Bug 740536
$dbh->bz_add_index('audit_log', 'audit_log_class_idx', ['class', 'at_time']);
+ # 2012-06-06 dkl@mozilla.com - Bug 762288
+ $dbh->bz_alter_column('bugs_activity', 'removed',
+ { TYPE => 'varchar(255)' });
+ $dbh->bz_add_index('bugs_activity', 'bugs_activity_removed_idx', ['removed']);
+
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################