fix column compiling
This commit is contained in:
parent
93039ac248
commit
af0546de3e
|
@ -157,7 +157,7 @@ class DbTables(DotDict):
|
|||
columns.append(column.compile(dbtype))
|
||||
|
||||
if column.foreign_key:
|
||||
fkey_table, fkey_col = column.foreign_key.split('.', 1)
|
||||
fkey_table, fkey_col = column.foreign_key
|
||||
foreign_keys.append(f"FOREIGN KEY ('{column.name}') REFERENCES '{fkey_table}' ('{fkey_col}')")
|
||||
|
||||
if foreign_keys:
|
||||
|
|
Loading…
Reference in a new issue