Skip to content

Instantly share code, notes, and snippets.

@jonathanalves
Created August 20, 2021 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanalves/b624555fe54896e8b3928f8ac31e7b4e to your computer and use it in GitHub Desktop.
Save jonathanalves/b624555fe54896e8b3928f8ac31e7b4e to your computer and use it in GitHub Desktop.
UPDATE public.configuracao SET
arisp=cast(a.depois->'arisp' as jsonb),
atendimento=cast(a.depois->'atendimento' as jsonb),
cabecalho_site=cast(a.depois->'cabecalho_site' as jsonb),
calculadora_valor_venal=cast(a.depois->'calculadora_valor_venal' as jsonb),
chat=cast(a.depois->'chat' as jsonb),
cidade=cast(a.depois->'cidade' as text),
corisc=cast(a.depois->'corisc' as jsonb),
debito=cast(a.depois->'debito' as jsonb),
detalhes_cartorio=cast(a.depois->'detalhes_cartorio' as jsonb),
email=cast(a.depois->'email' as jsonb),
estado=cast(a.depois->'estado' as text),
exigencia=cast(a.depois->'exigencia' as jsonb),
indisponibilidade=cast(a.depois->'indisponibilidade' as jsonb),
nota_fiscal=cast(a.depois->'nota_fiscal' as jsonb),
outros_templates=cast(a.depois->'outros_templates' as jsonb),
pdf=cast(a.depois->'pdf' as jsonb),
peer_banco=cast(a.depois->'peer_banco' as jsonb),
selo=cast(a.depois->'selo' as jsonb),
sinter=cast(a.depois->'sinter' as jsonb),
site=cast(a.depois->'site' as jsonb),
suporte=cast(a.depois->'suporte' as jsonb),
tags_configuration=cast(a.depois->'tags_configuration' as jsonb),
configuracao_fracao_transferencia_imovel=cast(a.depois->'configuracao_fracao_transferencia_imovel' as jsonb),
livros=cast(a.depois->'livros' as jsonb),
financeiro=cast(a.depois->'financeiro' as jsonb),
agendamentos=cast(a.depois->'agendamentos' as jsonb),
geral=cast(a.depois->'geral' as jsonb),
credito=cast(a.depois->'credito' as jsonb)
from auditoria a
where a.id = '71fa9094-f6d5-4d17-b0be-064f16f2280d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment