From a4b7b46bbc8242da75acc101dd0d0a1b6ebf393c Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 10 Sep 2018 09:31:23 -0300 Subject: [PATCH] =?UTF-8?q?Expande=20ressucitar=20depend=C3=AAncias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/legacy/scripts/ressucita_dependencias.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sapl/legacy/scripts/ressucita_dependencias.py b/sapl/legacy/scripts/ressucita_dependencias.py index 4a780a3fc..1484abb59 100644 --- a/sapl/legacy/scripts/ressucita_dependencias.py +++ b/sapl/legacy/scripts/ressucita_dependencias.py @@ -1,16 +1,16 @@ from collections import OrderedDict from textwrap import dedent +import texttable import yaml +from unipath import Path -import texttable from sapl.legacy.migracao_dados import (PROPAGACOES_DE_EXCLUSAO, campos_novos_para_antigos, exec_legado, get_arquivo_ajustes_pre_migracao, models_novos_para_antigos) from sapl.legacy_migration_settings import (DIR_DADOS_MIGRACAO, DIR_REPO, NOME_BANCO_LEGADO) -from unipath import Path def stripsplit(ll): @@ -284,6 +284,10 @@ SQLS_CRIACAO = [ insert into orgao (cod_orgao, nom_orgao, sgl_orgao, ind_unid_deliberativa, end_orgao, num_tel_orgao, ind_excluido) values ({}, "DESCONHECIDO", "DESC", 0, NULL, NULL, 0); '''), + ('origem', ''' + insert into origem (cod_origem, sgl_origem, nom_origem, ind_excluido) + values ({}, "DESC", "DESCONHECIDO", 0); + '''), ] SQLS_CRIACAO = {k: (dedent(sql.strip()), extras) for k, sql, *extras in SQLS_CRIACAO}