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

index 5697e10cdac6d700c372011315f91d961bcf2eee..1570a1b4da78af7a85f8e78456760503f2030863 100644 (file)
@@ -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);
   }