Skip to content

Commit

Permalink
Fix Migration for MSSQL (apache#8385)
Browse files Browse the repository at this point in the history
(cherry picked from commit a160886)
  • Loading branch information
BasPH authored and Chris Fei committed Mar 5, 2021
1 parent 94eec9c commit c04ac91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,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(
Expand Down

0 comments on commit c04ac91

Please sign in to comment.