Fix for PostgreSQL data migration (cast 0 as false).