From ce4451339427d2ec46edd8d20fcdc0e73743749b Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Fri, 11 Feb 2011 16:41:02 -0200 Subject: Bug 620827: Fix the bug_see_also class column length. r/a=LpSolit --- Bugzilla/Install/DB.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 7f32166c9..af5ddaf82 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -3548,10 +3548,15 @@ sub _migrate_user_tags { sub _populate_bug_see_also_class { my $dbh = Bugzilla->dbh; - return if $dbh->bz_column_info('bug_see_also', 'class'); + if ($dbh->bz_column_info('bug_see_also', 'class')) { + # The length was incorrectly set to 64 instead of 255. + $dbh->bz_alter_column('bug_see_also', 'class', + {TYPE => 'varchar(255)', NOTNULL => 1}); + return; + } $dbh->bz_add_column('bug_see_also', 'class', - {TYPE => 'varchar(64)', NOTNULL => 1}, ''); + {TYPE => 'varchar(255)', NOTNULL => 1}, ''); my $result = $dbh->selectall_arrayref( "SELECT id, value FROM bug_see_also"); -- cgit v1.2.3-24-g4f1b