]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1902375: fix foreignkey error upgrading from <3.0 to >=5.0.6 (#142)
authorDave Miller <justdave@bugzilla.org>
Mon, 26 Aug 2024 07:07:12 +0000 (03:07 -0400)
committerGitHub <noreply@github.com>
Mon, 26 Aug 2024 07:07:12 +0000 (03:07 -0400)
Bugzilla/Install/DB.pm

index 5ee99dcf478528f583978695c03afd08df474a19..0265b335074ae01618b773ce744c1ea3da0b5aac 100644 (file)
@@ -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);
   }