Fixes #6549 : Errors in postgres when you upgrade from 2.2.
Merge pull request #6560 from dotCMS/issue-6549-errors-postgres-when-upgrade-from-2.2

Fixes #6549 : Errors in postgres when you upgrade from 2.2.