From: Dave Miller Date: Mon, 26 Aug 2024 07:07:12 +0000 (-0400) Subject: Bug 1902375: fix foreignkey error upgrading from <3.0 to >=5.0.6 (#142) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc3b26cc31cd8ace8b0e48e8158c393d27293f8d;p=thirdparty%2Fbugzilla.git Bug 1902375: fix foreignkey error upgrading from <3.0 to >=5.0.6 (#142) --- diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 5ee99dcf4..0265b3350 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -923,7 +923,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); }