You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/06/16 23:36:19 UTC
[airflow] branch v1-10-test updated: Fix Migration for MSSQL (#8385)
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v1-10-test by this push:
new fab105e Fix Migration for MSSQL (#8385)
fab105e is described below
commit fab105eacf9cb98386b012dce6349ed0f4689dbe
Author: Bas Harenslak <Ba...@users.noreply.github.com>
AuthorDate: Fri Apr 17 00:10:11 2020 +0200
Fix Migration for MSSQL (#8385)
(cherry picked from commit a16088694908b45eefb5b1ab294dd2d706d6e540)
---
.../versions/852ae6c715af_add_rendered_task_instance_fields_table.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/migrations/versions/852ae6c715af_add_rendered_task_instance_fields_table.py b/airflow/migrations/versions/852ae6c715af_add_rendered_task_instance_fields_table.py
index c9f24ec..01357e7 100644
--- a/airflow/migrations/versions/852ae6c715af_add_rendered_task_instance_fields_table.py
+++ b/airflow/migrations/versions/852ae6c715af_add_rendered_task_instance_fields_table.py
@@ -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(