Commit ce445133 authored by Tiago Mello's avatar Tiago Mello

Bug 620827: Fix the bug_see_also class column length.

r/a=LpSolit
parent f0b62420
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment