fix: temp test: folded column names to lowercase

This commit is contained in:
Vlad Stan 2022-12-12 18:09:26 +02:00
parent 04f0f5b83b
commit fd111a3150

View File

@ -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})