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;
if [ "$DBVERSION" -eq 1022 ] ; then
if psql -f - -d ${db_name} $* <<END-OF-DATA
begin;
+ALTER TABLE Object ALTER ObjectId TYPE BIGINT;
ALTER TABLE Object ADD COLUMN ObjectCategory text not null;
create index object_category_idx on Object (ObjectCategory);
INSERT INTO Events (EventsCode, EventsType, EventsTime, EventsDaemon, EventsSource, EventsRef, EventsText) VALUES