fix(db-upgrade): use varchar on postgres

related to #CAM-858