Fix for PostgreSQL data migration (cast 0 as false).
Merge branch 'develop' into feature-allocation-views