Skip to content

Fix migrations 1.10.10 for MS SQL Server #8470

@ghost

Description

Apache Airflow version: 1.10.10

Environment:

  • Cloud provider or hardware configuration: MS SQL Server

What happened:

Migrations break on uncaught ProgrammingError:
https://github.com/apache/airflow/blob/1.10.10/airflow/migrations/versions/852ae6c715af_add_rendered_task_instance_fields_table.py#L48-L49

This was fixed for another migration using this hack in:
https://github.com/apache/airflow/blob/1.10.10/airflow/migrations/versions/d38e04c12aa2_add_serialized_dag_table.py#L44-L45

What you expected to happen:
The ProgrammingError is caught in the same way as in https://github.com/apache/airflow/blob/1.10.10/airflow/migrations/versions/d38e04c12aa2_add_serialized_dag_table.py#L44-L45

How to reproduce it:
Run migrations on a fresh MSSQL Server Database

Related JIRA ticket of previous bug report:
https://issues.apache.org/jira/browse/AIRFLOW-6366

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions