diff --git a/airflow/migrations/versions/0118_2_4_2_add_missing_autoinc_fab.py b/airflow/migrations/versions/0118_2_4_2_add_missing_autoinc_fab.py index f6becd9dfe64a..69b0e231d12b8 100644 --- a/airflow/migrations/versions/0118_2_4_2_add_missing_autoinc_fab.py +++ b/airflow/migrations/versions/0118_2_4_2_add_missing_autoinc_fab.py @@ -67,7 +67,7 @@ def upgrade(): with op.batch_alter_table(table) as batch: kwargs = {} if conn.dialect.name == 'postgresql': - kwargs['type_'] = sa.Sequence(f'{table}_id_seq').next_value() + kwargs['server_default'] = sa.Sequence(f'{table}_id_seq').next_value() else: kwargs['autoincrement'] = True batch.alter_column("id", existing_type=sa.Integer(), existing_nullable=False, **kwargs) diff --git a/docs/apache-airflow/img/airflow_erd.sha256 b/docs/apache-airflow/img/airflow_erd.sha256 index 26f6e90fbf41d..bf9c204a6f81f 100644 --- a/docs/apache-airflow/img/airflow_erd.sha256 +++ b/docs/apache-airflow/img/airflow_erd.sha256 @@ -1 +1 @@ -5d0b9bcb02f09e99338b2c230cf2c7b1e8af7f7ea675eca6f31e49e851e11941 \ No newline at end of file +dca9bf08dd97b5f51c387726a2e9d25996769e85dda0d403e8e088ce222faa09 \ No newline at end of file