From 06feb186d98d718264671e8079ccd01d20935165 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 26 Jun 2012 12:45:58 -0400 Subject: Bug 762288 - Change bugs_activity.removed to match data type of bugs_activity.added r/a=LpSolit --- Bugzilla/DB/Schema.pm | 3 ++- Bugzilla/Install/DB.pm | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 00ff4acc9..70b0c0650 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -358,7 +358,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', @@ -370,6 +370,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 e89e19647..baf9adeed 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -669,6 +669,11 @@ sub update_table_definitions { $dbh->bz_add_index('profile_search', 'profile_search_user_id_idx', [qw(user_id)]); } + # 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 # ################################################################ -- cgit v1.2.3-24-g4f1b