update widgets
  tabela_specyficznai_id = tabela_obcai_id
 where tabela_obcai_type = 'TabelaObcai'
  and exists (
    select true
      from tabela_specyficznai sft
    where sft.id = tabela_specyficznai_id
);
