BAP-5871 Impossible to upload pictures/avatar to entity
   - fix update issue for postgreSQL
Merge pull request #1194 from laboro/fix/BAP-5871

BAP-5871 Impossible to upload pictures/avatar to entity