mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-27 17:23:12 +02:00
consider bool
This commit is contained in:
parent
05d59cd7fa
commit
3e68d897ed
@ -160,7 +160,7 @@ def build_insert_query(schema, tableName, columns):
|
|||||||
def to_column_type(columnType):
|
def to_column_type(columnType):
|
||||||
if columnType == "TIMESTAMP":
|
if columnType == "TIMESTAMP":
|
||||||
return "to_timestamp(%s)"
|
return "to_timestamp(%s)"
|
||||||
if columnType == "BOOLEAN":
|
if columnType in ["BOOLEAN", "BOOL"]:
|
||||||
return "%s::boolean"
|
return "%s::boolean"
|
||||||
return "%s"
|
return "%s"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user