]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix MySQL update procedure with incorrect handling of the FileIndex type
authorEric Bollengier <eric@baculasystems.com>
Tue, 15 Dec 2020 12:48:27 +0000 (13:48 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:57 +0000 (09:02 +0100)
commitf8e1986ce6a5a619e2e99ef350d6bcb14adad79e
tree5b84b1033f13792fe2e08f3fd89a6d4772a881e2
parent656ce4f0e6982e68c9c41dbff6bb89ef703cad80
Fix MySQL update procedure with incorrect handling of the FileIndex type

Upgrade fails as follows:

   This script will update a Bacula MySQL database
   from any from version 12-15 or 1014-1021 to version 1022
   which is needed to convert from any Bacula Enterprise
   version 4.0.x or later to version 12.4.x
   or Bacula Community versions 5.0.x, 5.2.x, 7.4.x, 9.x.x to
   Community version 11.0

   Depending on the current version of your catalog, you may
   have to run this script multiple times

   ERROR 1264 (22003) at line 24: Out of range value for column 'FileIndex' at row 1
   Update of Bacula MySQL tables from 16 to 1017 failed.

This would indicate that the file_temp table is using an unsigned
version of FileIndex however it should be signed, so changing the
schema of that temp table makes it go further,
bacula/src/cats/update_mysql_tables.in