diff options
author | Tiago Mello <timello@gmail.com> | 2011-02-11 19:41:02 +0100 |
---|---|---|
committer | Tiago Mello <timello@gmail.com> | 2011-02-11 19:41:02 +0100 |
commit | ce4451339427d2ec46edd8d20fcdc0e73743749b (patch) | |
tree | e4fcae0af890de7c37b25506b6c8b4caba8dd4da /Bugzilla/Install | |
parent | f0b6242097e487198de559d39d4169a2a0a4d8e7 (diff) | |
download | bugzilla-ce4451339427d2ec46edd8d20fcdc0e73743749b.tar.gz bugzilla-ce4451339427d2ec46edd8d20fcdc0e73743749b.tar.xz |
Bug 620827: Fix the bug_see_also class column length.
r/a=LpSolit
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r-- | Bugzilla/Install/DB.pm | 9 |
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"); |