uranusjr commented on code in PR #41818:
URL: https://github.com/apache/airflow/pull/41818#discussion_r1734329926
##########
airflow/utils/db.py:
##########
@@ -1191,6 +1191,10 @@ def check_run_id_null(session: Session) -> Iterable[str]:
if dagrun_table is None:
return
+ # Airflow 3.0 renames this field.
+ if not hasattr(dagrun_table.c, "execution_date"):
+ dagrun_table.c.execution_date = dagrun_table.c.logical_date
Review Comment:
This is for data integrity checks in `upgradedb`. But I’m thinking maybe we
can just drop the checks entirely?
If we _require_ users to upgrade to 2.10 (or even 2.11) before upgrading,
they should have already run those checks and have data integrity (enforced by
the database) when they upgrade to 3.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]