From c77b7c72950be7fbd7df6193b13dc02ff691d6d2 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Sun, 17 Dec 2023 12:19:08 -0700 Subject: [PATCH] fix: Add comment about bugs in config file --- tm_admin/generator.py | 2 ++ 1 file changed, 2 insertions(+) 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"