UPDATE pxy_abstract_message SET index_int= CAST(index AS integer) where index != '?';

-- If old values containt index with empty or null value
--UPDATE pxy_abstract_message SET index_int=0  where COALESCE(index,'') = '';
--UPDATE pxy_abstract_message SET index_int=0  where index = '?';
