ephraimbuddy commented on a change in pull request #21273:
URL: https://github.com/apache/airflow/pull/21273#discussion_r803368623
##########
File path:
airflow/migrations/versions/b25a55525161_increase_length_of_pool_name.py
##########
@@ -45,6 +45,8 @@ def upgrade():
def downgrade():
"""Revert Increased length of pool name from 256 to 50 characters"""
- # use batch_alter_table to support SQLite workaround
- with op.batch_alter_table('slot_pool',
table_args=sa.UniqueConstraint('pool')) as batch_op:
- batch_op.alter_column('pool', type_=sa.String(50))
+ conn = op.get_bind()
+ if conn.dialect.name != 'mssql':
Review comment:
It created a unique check constraint implicitly for this column. I will
remove this change as this is below 2.0.0 head
--
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]