This is an automated email from the ASF dual-hosted git repository.

jedcunningham 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 1bd538be8c Fix bad drop_constraint call in migrations (#31302)
1bd538be8c is described below

commit 1bd538be8c5b134643a6c5eddd06f70e6f0db2e7
Author: Daniel Standish <[email protected]>
AuthorDate: Mon May 15 16:03:00 2023 -0700

    Fix bad drop_constraint call in migrations (#31302)
    
    Apparently alembic no longer likes 2 positional arguments.
    
    (cherry picked from commit dba5ec3ad7339e7ccd287fdf5ad9e855c4e5493c)
---
 .../versions/0093_2_2_0_taskinstance_keyed_to_dagrun.py           | 2 +-
 docs/apache-airflow/img/airflow_erd.sha256                        | 2 +-
 docs/apache-airflow/img/airflow_erd.svg                           | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/airflow/migrations/versions/0093_2_2_0_taskinstance_keyed_to_dagrun.py 
b/airflow/migrations/versions/0093_2_2_0_taskinstance_keyed_to_dagrun.py
index dfaa9d60b0..219eb973c1 100644
--- a/airflow/migrations/versions/0093_2_2_0_taskinstance_keyed_to_dagrun.py
+++ b/airflow/migrations/versions/0093_2_2_0_taskinstance_keyed_to_dagrun.py
@@ -156,7 +156,7 @@ def upgrade():
             "run_id", existing_type=string_id_col_type, 
existing_nullable=True, nullable=False
         )
 
-        batch_op.drop_constraint("task_reschedule_dag_task_date_fkey", 
"foreignkey")
+        batch_op.drop_constraint("task_reschedule_dag_task_date_fkey", 
type_="foreignkey")
         if dialect_name == "mysql":
             # Mysql creates an index and a constraint -- we have to drop both
             batch_op.drop_index("task_reschedule_dag_task_date_fkey")
diff --git a/docs/apache-airflow/img/airflow_erd.sha256 
b/docs/apache-airflow/img/airflow_erd.sha256
index bc462539ad..596d892561 100644
--- a/docs/apache-airflow/img/airflow_erd.sha256
+++ b/docs/apache-airflow/img/airflow_erd.sha256
@@ -1 +1 @@
-87f70d3f35c883e544ce7fe6337227c000a9cf995d148648ab19a931b490ecb8
\ No newline at end of file
+d3e1272db6e730812ad1c6c317e8de0147aee7b4c02cc33cb096645a408eedd5
\ 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 b531759ac4..017bff5c8f 100644
--- a/docs/apache-airflow/img/airflow_erd.svg
+++ b/docs/apache-airflow/img/airflow_erd.svg
@@ -1225,28 +1225,28 @@
 <g id="edge48" class="edge">
 <title>task_instance&#45;&#45;xcom</title>
 <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" 
d="M1137.01,-488.65C1161.12,-465.83 1186.07,-443.06 1210,-422 1216.27,-416.48 
1222.72,-410.89 1229.27,-405.29"/>
-<text text-anchor="start" x="1198.27" y="-394.09" font-family="Times,serif" 
font-size="14.00">0..N</text>
+<text text-anchor="start" x="1219.27" y="-394.09" font-family="Times,serif" 
font-size="14.00">1</text>
 <text text-anchor="start" x="1137.01" y="-477.45" font-family="Times,serif" 
font-size="14.00">1</text>
 </g>
 <!-- task_instance&#45;&#45;xcom -->
 <g id="edge49" class="edge">
 <title>task_instance&#45;&#45;xcom</title>
 <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" 
d="M1137.01,-506.4C1161.12,-483.83 1186.07,-461.06 1210,-440 1216.27,-434.48 
1222.72,-428.89 1229.27,-423.28"/>
-<text text-anchor="start" x="1198.27" y="-412.08" font-family="Times,serif" 
font-size="14.00">0..N</text>
+<text text-anchor="start" x="1219.27" y="-412.08" font-family="Times,serif" 
font-size="14.00">1</text>
 <text text-anchor="start" x="1137.01" y="-495.2" font-family="Times,serif" 
font-size="14.00">1</text>
 </g>
 <!-- task_instance&#45;&#45;xcom -->
 <g id="edge50" class="edge">
 <title>task_instance&#45;&#45;xcom</title>
 <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" 
d="M1137.01,-524.15C1161.12,-501.83 1186.07,-479.06 1210,-458 1216.66,-452.14 
1223.53,-446.19 1230.5,-440.21"/>
-<text text-anchor="start" x="1220.5" y="-444.01" font-family="Times,serif" 
font-size="14.00">1</text>
+<text text-anchor="start" x="1199.5" y="-444.01" font-family="Times,serif" 
font-size="14.00">0..N</text>
 <text text-anchor="start" x="1137.01" y="-512.95" font-family="Times,serif" 
font-size="14.00">1</text>
 </g>
 <!-- task_instance&#45;&#45;xcom -->
 <g id="edge51" class="edge">
 <title>task_instance&#45;&#45;xcom</title>
 <path fill="none" stroke="#7f7f7f" stroke-dasharray="5,2" 
d="M1137.01,-541.9C1161.12,-519.83 1186.07,-497.06 1210,-476 1223.32,-464.28 
1237.48,-452.19 1251.63,-440.12"/>
-<text text-anchor="start" x="1241.63" y="-443.92" font-family="Times,serif" 
font-size="14.00">1</text>
+<text text-anchor="start" x="1251.63" y="-443.92" font-family="Times,serif" 
font-size="14.00">0..N</text>
 <text text-anchor="start" x="1137.01" y="-530.7" font-family="Times,serif" 
font-size="14.00">1</text>
 </g>
 <!-- log_template -->

Reply via email to