diff --git a/migrations/versions/9e8c841d1a30_fix_hash.py b/migrations/versions/9e8c841d1a30_fix_hash.py index 052d03009d..966d393391 100644 --- a/migrations/versions/9e8c841d1a30_fix_hash.py +++ b/migrations/versions/9e8c841d1a30_fix_hash.py @@ -28,7 +28,7 @@ def update_query_hash(record): parameters_dict = {p["name"]: p.get("value") for p in record['options'].get('parameters', [])} if record.options else {} if any(parameters_dict): - print(f"Query {record.id} has parameters. Hash might be incorrect.") + print(f"Query {record['query_id']} has parameters. Hash might be incorrect.") return query_runner.gen_query_hash(query_text, should_apply_auto_limit)