From a77f12036281cc4163314b95d14a433b4fcda492 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Wed, 5 Feb 2020 22:23:28 +0100 Subject: [PATCH] Ignora backtick na leitura do dump mysql --- sapl/legacy/migracao_dados.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sapl/legacy/migracao_dados.py b/sapl/legacy/migracao_dados.py index bf32199c4..11a80cdb2 100644 --- a/sapl/legacy/migracao_dados.py +++ b/sapl/legacy/migracao_dados.py @@ -349,6 +349,7 @@ def existe_coluna_no_legado(tabela, coluna): def garante_coluna_no_legado(tabela, spec_coluna): + spec_coluna = spec_coluna.strip().replace("`", "") coluna = spec_coluna.split()[0] if not existe_coluna_no_legado(tabela, coluna): exec_legado("ALTER TABLE {} ADD COLUMN {}".format(tabela, spec_coluna))