def update_table_schema()

in upload.py [0:0]


def update_table_schema(client: bigquery.Client, table_name: str, schema: list[bigquery.SchemaField]):
    table_ref = client.dataset(DATASET).table(table_name)
    table = client.get_table(table_ref)

    if schema_field_names(table.schema) != schema_field_names(schema):
        table.schema = schema
        client.update_table(table, ["schema"])