From 537c72ce9ebc5765c9f98c7047062990c416236c Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Sat, 1 Sep 2018 17:26:31 -0300 Subject: [PATCH] =?UTF-8?q?Adiciona=20cria=C3=A7=C3=A3o=20de=20tipo=20docu?= =?UTF-8?q?mento=20ao=20ressucitar=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/legacy/scripts/ressucita_dependencias.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sapl/legacy/scripts/ressucita_dependencias.py b/sapl/legacy/scripts/ressucita_dependencias.py index 7f51de9f7..a4c517088 100644 --- a/sapl/legacy/scripts/ressucita_dependencias.py +++ b/sapl/legacy/scripts/ressucita_dependencias.py @@ -257,7 +257,11 @@ SQLS_CRIACAO = [ cod_autor, cod_partido, cod_comissao, cod_parlamentar, tip_autor, nom_autor, des_cargo, col_username, ind_excluido) values ({}, 0, 0, 0, 0, "DESCONHECIDO", "DESCONHECIDO", NULL, 0); - ''') + '''), + ('tipo_documento', ''' + insert into tipo_documento (tip_documento, des_tipo_documento, ind_excluido) + values ({}, "DESCONHECIDO", 0); + '''), ] SQLS_CRIACAO = {k: (dedent(sql.strip()), extras) for k, sql, *extras in SQLS_CRIACAO}