summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Install/DB.pm9
1 files 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");