We have recently changed an .insert into a .upsert but we forgot to add the unique index on the postgres schema.
declaration
declarationMap