dstandish commented on code in PR #51952:
URL: https://github.com/apache/airflow/pull/51952#discussion_r2164593919


##########
airflow-core/src/airflow/utils/db_cleanup.py:
##########
@@ -231,9 +259,13 @@ def _do_delete(
                 delete = source_table.delete().where(
                     and_(col == target_table.c[col.name] for col in 
source_table.primary_key.columns)
                 )
+            if skip_delete:
+                print(f"Skipping deletion for FK table {orm_model.name}; 
relying on ON DELETE CASCADE.")
+                return

Review Comment:
   do we not still need to commit here?



-- 
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]

Reply via email to