From 2885a1de4c39dbf23127d95209da4433c0059dd4 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Mon, 26 Aug 2024 02:39:26 -0400 Subject: [PATCH] Bug 1902375: fix foreignkey error upgrading from <3.0 to >=5.0.6 --- Bugzilla/Install/DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }