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


##########
airflow-core/src/airflow/migrations/versions/0047_3_0_0_add_dag_versioning.py:
##########
@@ -72,6 +74,14 @@ def upgrade():
     )
 
     with ignore_sqlite_value_error(), op.batch_alter_table("dag_code") as 
batch_op:
+        if dialect_name == "mysql":
+            # MySQL can't drop a primary key while an AUTO_INCREMENT column 
depends on it.
+            batch_op.alter_column(
+                "fileloc_hash",
+                existing_type=sa.BigInteger(),
+                existing_nullable=False,
+                autoincrement=False,
+            )

Review Comment:
   This can be done as a next step fixing offline issues



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