Skip to content

Commit

Permalink
[AIRFLOW-6366] Fix migrations for MS SQL Server (#6920)
Browse files Browse the repository at this point in the history
  • Loading branch information
baolsen authored and potiuk committed Dec 27, 2019
1 parent cf36cd9 commit 0205b74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def upgrade():
# versions, check for the function existing.
try:
conn.execute("SELECT JSON_VALID(1)").fetchone()
except sa.exc.OperationalError:
except (sa.exc.OperationalError, sa.exc.ProgrammingError):
json_type = sa.Text

op.create_table('serialized_dag', # pylint: disable=no-member
Expand Down

0 comments on commit 0205b74

Please sign in to comment.