ephraimbuddy commented on code in PR #63437:
URL: https://github.com/apache/airflow/pull/63437#discussion_r2924453694


##########
airflow-core/src/airflow/migrations/versions/0095_3_2_0_update_orm_asset_partitioning.py:
##########
@@ -80,6 +80,10 @@ def upgrade():
 
 def downgrade():
     """Unapply Update ORM for asset partitioning."""
+    conn = op.get_bind()
+    if conn.dialect.name == "sqlite":
+        conn.execute(sa.text("PRAGMA foreign_keys=OFF"))

Review Comment:
   The main reason we use op.batch is to avoid doing this in migration files



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