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

uranusjr 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 5221196df4 Fix compatibility with old MySQL 8.0 (#40314)
5221196df4 is described below

commit 5221196df4d5bd9e534db34ca683cf85f2e20fcf
Author: Jed Cunningham <66968678+jedcunning...@users.noreply.github.com>
AuthorDate: Wed Jun 19 00:12:02 2024 -0600

    Fix compatibility with old MySQL 8.0 (#40314)
---
 ..._9_2_fix_inconsistency_between_ORM_and_migration_files.py | 12 ++++++------
 docs/apache-airflow/img/airflow_erd.sha256                   |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/airflow/migrations/versions/0142_2_9_2_fix_inconsistency_between_ORM_and_migration_files.py
 
b/airflow/migrations/versions/0142_2_9_2_fix_inconsistency_between_ORM_and_migration_files.py
index 3d07b67e3a..6aaf191111 100644
--- 
a/airflow/migrations/versions/0142_2_9_2_fix_inconsistency_between_ORM_and_migration_files.py
+++ 
b/airflow/migrations/versions/0142_2_9_2_fix_inconsistency_between_ORM_and_migration_files.py
@@ -50,7 +50,7 @@ def upgrade():
             TABLE_NAME        = 'connection' AND
             CONSTRAINT_NAME   = 'unique_conn_id' AND
             CONSTRAINT_TYPE   = 'UNIQUE') = true,'ALTER TABLE connection
-            drop constraint unique_conn_id','select 1');
+            DROP INDEX unique_conn_id','select 1');
 
         prepare stmt from @var;
         execute stmt;
@@ -65,7 +65,7 @@ def upgrade():
                     TABLE_NAME        = 'connection' AND
                     CONSTRAINT_NAME   = 'connection_conn_id_uq' AND
                     CONSTRAINT_TYPE   = 'UNIQUE') = true,'ALTER TABLE 
connection
-                    drop constraint connection_conn_id_uq','select 1');
+                    DROP INDEX connection_conn_id_uq','select 1');
 
                 prepare stmt from @var;
                 execute stmt;
@@ -127,7 +127,7 @@ def upgrade():
                             TABLE_NAME        = 'dag_run' AND
                             CONSTRAINT_NAME   = 
'dag_run_dag_id_execution_date_uq' AND
                             CONSTRAINT_TYPE   = 'UNIQUE') = true,'ALTER TABLE 
dag_run
-                            drop constraint 
dag_run_dag_id_execution_date_uq','select 1');
+                            DROP INDEX 
dag_run_dag_id_execution_date_uq','select 1');
 
                         prepare stmt from @var;
                         execute stmt;
@@ -141,7 +141,7 @@ def upgrade():
                             TABLE_NAME        = 'dag_run' AND
                             CONSTRAINT_NAME   = 'dag_run_dag_id_run_id_uq' AND
                             CONSTRAINT_TYPE   = 'UNIQUE') = true,'ALTER TABLE 
dag_run
-                            drop constraint dag_run_dag_id_run_id_uq','select 
1');
+                            DROP INDEX dag_run_dag_id_run_id_uq','select 1');
 
                         prepare stmt from @var;
                         execute stmt;
@@ -156,7 +156,7 @@ def upgrade():
                                     TABLE_NAME        = 'dag_run' AND
                                     CONSTRAINT_NAME   = 
'dag_run_dag_id_execution_date_key' AND
                                     CONSTRAINT_TYPE   = 'UNIQUE') = 
true,'ALTER TABLE dag_run
-                                    drop constraint 
dag_run_dag_id_execution_date_key','select 1');
+                                    DROP INDEX 
dag_run_dag_id_execution_date_key','select 1');
 
                                 prepare stmt from @var;
                                 execute stmt;
@@ -170,7 +170,7 @@ def upgrade():
                                 TABLE_NAME        = 'dag_run' AND
                                 CONSTRAINT_NAME   = 
'dag_run_dag_id_run_id_key' AND
                                 CONSTRAINT_TYPE   = 'UNIQUE') = true,'ALTER 
TABLE dag_run
-                                drop constraint 
dag_run_dag_id_run_id_key','select 1');
+                                DROP INDEX dag_run_dag_id_run_id_key','select 
1');
 
                             prepare stmt from @var;
                             execute stmt;
diff --git a/docs/apache-airflow/img/airflow_erd.sha256 
b/docs/apache-airflow/img/airflow_erd.sha256
index 8bee1dfbbf..ba13ba8556 100644
--- a/docs/apache-airflow/img/airflow_erd.sha256
+++ b/docs/apache-airflow/img/airflow_erd.sha256
@@ -1 +1 @@
-de5209e4fe92d96f2749f8e8b7a31467a1c636f77c690e305edd45473a1bd698
\ No newline at end of file
+64c9ef7def00dfa38aba681a88bae3c9412c3f4529430f4906c289eff59e105b
\ No newline at end of file

Reply via email to