From: Eric Bollengier Date: Wed, 6 Jan 2021 14:29:40 +0000 (+0100) Subject: Fix org#2588 About incorrect Object/ObjectId type in update_postgresql_tables X-Git-Tag: Release-11.3.2~785 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=818f0eb629be54438cc0b391a76ba95906e5289d;p=thirdparty%2Fbacula.git Fix org#2588 About incorrect Object/ObjectId type in update_postgresql_tables The Object/ObjectId field has the type serial when the schema is upgraded with update_postgresql_tables while it has the type bigserial when the DB is created with make_postgresql_tables. To fix manually the problem, it is possible to exectute the following SQL command: ALTER TABLE Object ALTER ObjectId TYPE BIGINT; --- diff --git a/bacula/src/cats/update_postgresql_tables.in b/bacula/src/cats/update_postgresql_tables.in index a2acd488e..bd40f5181 100644 --- a/bacula/src/cats/update_postgresql_tables.in +++ b/bacula/src/cats/update_postgresql_tables.in @@ -569,6 +569,7 @@ fi if [ "$DBVERSION" -eq 1022 ] ; then if psql -f - -d ${db_name} $* <