Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
fix: Add comment about bugs in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Dec 17, 2023
1 parent 1bd770b commit c77b7c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tm_admin/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c77b7c7

Please sign in to comment.