fix: temp test: folded column names to lowercase
This commit is contained in:
parent
04f0f5b83b
commit
fd111a3150
|
@ -144,7 +144,7 @@ def migrate_db(file: str, schema: str, exclude_tables: List[str] = []):
|
||||||
|
|
||||||
|
|
||||||
def build_insert_query(schema, tableName, columns):
|
def build_insert_query(schema, tableName, columns):
|
||||||
to_columns = ", ".join(map(lambda column: f'"{column[1]}"', columns))
|
to_columns = ", ".join(map(lambda column: f'"{column[1].lower()}"', columns))
|
||||||
values = ", ".join(map(lambda column: to_column_type(column[2]), columns))
|
values = ", ".join(map(lambda column: to_column_type(column[2]), columns))
|
||||||
return f"""
|
return f"""
|
||||||
INSERT INTO {schema}.{tableName}({to_columns})
|
INSERT INTO {schema}.{tableName}({to_columns})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user