@ -316,6 +316,7 @@ def anula_tipos_origem_externa_invalidos():
from tipo_materia_legislativa
where ind_excluido <> 1;''')))
if tipos_validos:
exec_legado('''
update materia_legislativa
set tip_origem_externa = NULL