From ee584f4eb196b6712880ce2c19d641d45da29900 Mon Sep 17 00:00:00 2001 From: Ephraim Anierobi Date: Thu, 2 May 2024 17:24:12 +0100 Subject: [PATCH] Add the existing_nullable to the downgrade side of the migration (#39374) I missed this in the earlier PR on adding the existing_nullable(#39361) --- .../versions/0140_2_9_0_update_trigger_kwargs_type.py | 4 +++- docs/apache-airflow/img/airflow_erd.sha256 | 2 +- docs/apache-airflow/img/airflow_erd.svg | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/airflow/migrations/versions/0140_2_9_0_update_trigger_kwargs_type.py b/airflow/migrations/versions/0140_2_9_0_update_trigger_kwargs_type.py index 7c27459a72534..299f2454b526f 100644 --- a/airflow/migrations/versions/0140_2_9_0_update_trigger_kwargs_type.py +++ b/airflow/migrations/versions/0140_2_9_0_update_trigger_kwargs_type.py @@ -87,4 +87,6 @@ def downgrade(): session.close() with op.batch_alter_table("trigger") as batch_op: - batch_op.alter_column("kwargs", type_=ExtendedJSON(), postgresql_using="kwargs::json") + batch_op.alter_column( + "kwargs", type_=ExtendedJSON(), postgresql_using="kwargs::json", existing_nullable=False + ) diff --git a/docs/apache-airflow/img/airflow_erd.sha256 b/docs/apache-airflow/img/airflow_erd.sha256 index fa2a8313a9c24..132655e3b39f8 100644 --- a/docs/apache-airflow/img/airflow_erd.sha256 +++ b/docs/apache-airflow/img/airflow_erd.sha256 @@ -1 +1 @@ -2e81e413572223fb23ad87086f9f3684363278b0b88400071c19688bc2ce9136 \ No newline at end of file +e816aa2004ece1f8e07f6c5978a690ae7176b81f7d9df89115f3b65dab1c5231 \ No newline at end of file diff --git a/docs/apache-airflow/img/airflow_erd.svg b/docs/apache-airflow/img/airflow_erd.svg index b80fcc4298b18..fb280ee0ea7fc 100644 --- a/docs/apache-airflow/img/airflow_erd.svg +++ b/docs/apache-airflow/img/airflow_erd.svg @@ -1421,7 +1421,7 @@ task_instance--xcom -0..N +1 1 @@ -1442,7 +1442,7 @@ task_instance--xcom -1 +0..N 1