diff --git a/tm_admin/generator.py b/tm_admin/generator.py index 59e27d1a..7c12d088 100755 --- a/tm_admin/generator.py +++ b/tm_admin/generator.py @@ -333,6 +333,8 @@ def createSQLTable(self): out += f"\t{k} {v[0]}{array}{required},\n" else: # print(v) + # FIXME: if this produces an error, check the yaml file as this + # usually means the type field isn't first in the list. out += f"\t{k} {self.yaml2sql[v[0]]}{array}{required},\n" if len(unique) > 0: out += f"\tUNIQUE({unique})\n);\n"