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~933 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b8057e2c49f333e0ace729467d9cc55050a9567;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 73aede306..7d61000fa 100644 --- a/bacula/src/cats/update_postgresql_tables.in +++ b/bacula/src/cats/update_postgresql_tables.in @@ -516,7 +516,7 @@ CREATE TABLE TagObject CREATE TABLE Object ( - ObjectId serial not null, + ObjectId bigserial not null, JobId integer not null, Path text not null,