ephraimbuddy commented on a change in pull request #21273:
URL: https://github.com/apache/airflow/pull/21273#discussion_r804439314
##########
File path:
airflow/migrations/versions/5e3ec427fdd3_increase_length_of_email_and_username.py
##########
@@ -46,9 +46,11 @@ def upgrade():
def downgrade():
"""Revert length of email from 256 to 64 characters"""
- with op.batch_alter_table('ab_user') as batch_op:
- batch_op.alter_column('username', type_=sa.String(64))
- batch_op.alter_column('email', type_=sa.String(64))
- with op.batch_alter_table('ab_register_user') as batch_op:
- batch_op.alter_column('username', type_=sa.String(64))
- batch_op.alter_column('email', type_=sa.String(64))
+ conn = op.get_bind()
+ if conn.dialect.name != 'mssql':
Review comment:
The naming convention is not able to change this unique constraint name
--
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]