From 9266139fdc2fb85add04639b72a8f824d84d7268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor=20Frans=20Pondaco=20Winandy?= <jvfpw18@inf.ufpr.br> Date: Mon, 15 Jul 2019 08:48:59 -0300 Subject: [PATCH] Fix creation without columns in table definitions --- database/database_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/database_table.py b/database/database_table.py index d3c0dce..d67e944 100644 --- a/database/database_table.py +++ b/database/database_table.py @@ -347,7 +347,7 @@ class DatabaseTable(Table): column[0] = column[0].strip() column_dict[column[0]] = [column[1], self._protocol.target_from_dbcolumn(column[0])] - if not ignore_diff: + if not ignore_diff and tdef_columns: for c_name, c_type in tdef_columns.items(): if c_name not in column_dict.keys(): prompt = input("The column {} is not present on the mapping protocol but is on the table definition," -- GitLab