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


##########
airflow-core/src/airflow/migrations/versions/0060_3_0_0_add_try_id_to_ti_and_tih.py:
##########
@@ -127,34 +127,8 @@ def upgrade():
 
 def downgrade():
     """Unapply Add try_id to TI and TIH."""
-    dialect_name = op.get_bind().dialect.name
     with op.batch_alter_table("task_instance_history", schema=None) as 
batch_op:
         batch_op.drop_constraint(batch_op.f("task_instance_history_pkey"), 
type_="primary")
-        batch_op.add_column(sa.Column("id", sa.INTEGER, nullable=True))
+        batch_op.add_column(sa.Column("id", sa.INTEGER, primary_key=True, 
autoincrement=True))

Review Comment:
   Can you test with postgresql because according to alembic, autoincrement is 
only understood by mysql: https://alembic.sqlalchemy.org/en/latest/ops.html



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