extract enum attribute out of enum column