Skip to content

Commit

Permalink
Fix compatibility with old MySQL 8.0 (#40314)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedcunningham authored Jun 19, 2024
1 parent f81abd6 commit 5221196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion docs/apache-airflow/img/airflow_erd.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
de5209e4fe92d96f2749f8e8b7a31467a1c636f77c690e305edd45473a1bd698
64c9ef7def00dfa38aba681a88bae3c9412c3f4529430f4906c289eff59e105b

0 comments on commit 5221196

Please sign in to comment.