You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/08/09 21:00:30 UTC
[airflow] branch main updated: Change type of defualts for include_deferred (#33271)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new d989e9dba5 Change type of defualts for include_deferred (#33271)
d989e9dba5 is described below
commit d989e9dba5899e87780df9a8c5994ed1e3f8a776
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Aug 9 23:00:21 2023 +0200
Change type of defualts for include_deferred (#33271)
We should change the defaults to client defaults for MSSQL compatibility
The change in #32709 was not liked by MSSQL
Co-authored-by: Ephraim Anierobi <sp...@gmail.com>
---
.../versions/0128_2_7_0_add_include_deferred_column_to_pool.py | 4 +---
docs/apache-airflow/img/airflow_erd.sha256 | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/airflow/migrations/versions/0128_2_7_0_add_include_deferred_column_to_pool.py b/airflow/migrations/versions/0128_2_7_0_add_include_deferred_column_to_pool.py
index ea10320480..bbafc68057 100644
--- a/airflow/migrations/versions/0128_2_7_0_add_include_deferred_column_to_pool.py
+++ b/airflow/migrations/versions/0128_2_7_0_add_include_deferred_column_to_pool.py
@@ -39,9 +39,7 @@ airflow_version = "2.7.0"
def upgrade():
"""Apply add include_deferred column to pool"""
with op.batch_alter_table("slot_pool") as batch_op:
- batch_op.add_column(
- sa.Column("include_deferred", sa.Boolean, nullable=False, server_default=sa.false())
- )
+ batch_op.add_column(sa.Column("include_deferred", sa.Boolean, default=False))
def downgrade():
diff --git a/docs/apache-airflow/img/airflow_erd.sha256 b/docs/apache-airflow/img/airflow_erd.sha256
index 5f9515fc19..a7704c8fc5 100644
--- a/docs/apache-airflow/img/airflow_erd.sha256
+++ b/docs/apache-airflow/img/airflow_erd.sha256
@@ -1 +1 @@
-3420f98a9dfa230d76be4da57bc4a3641cb929b33b9eafe7ffa41fb4fcc4d283
\ No newline at end of file
+52b0e45032fb1c60274374e0114cf199dfb759adc0a4fe32964136347457506a
\ No newline at end of file