From: Dave Miller Date: Mon, 26 Aug 2024 07:06:16 +0000 (-0400) Subject: Bug 1902375: fix foreignkey error upgrading from <3.0 to >=5.0.6 (#196) X-Git-Tag: bugzilla-5.2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aea2a07116073f1dbd0fddd06dd6780c08e96109;p=thirdparty%2Fbugzilla.git Bug 1902375: fix foreignkey error upgrading from <3.0 to >=5.0.6 (#196) --- diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 5697e10cd..1570a1b4d 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -837,7 +837,7 @@ sub _update_flagtypes_id { } } - if ($flagtypes_def->{TYPE} eq 'SMALLSERIAL') { + if ($flagtypes_def->{TYPE} ne 'MEDIUMSERIAL') { $flagtypes_def->{TYPE} = 'MEDIUMSERIAL'; $dbh->bz_alter_column('flagtypes', 'id', $flagtypes_def); }