Skip to content

Commit

Permalink
Fix compatibility with old MySQL 8.0 (#40314)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5221196)

Update diagram
  • Loading branch information
jedcunningham authored and utkarsharma2 committed Jul 2, 2024
1 parent 012955d commit 3e9d05e
Show file tree
Hide file tree
Showing 3 changed files with 1,572 additions and 1,278 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 @@
d6dee7810741e867800584816b914e94de069f100dfe5895ecb12b0cf86b4db4
e670d38015b2ae41e9acc8390567ea43ce28555eac374117f07617fa3422948d
Loading

0 comments on commit 3e9d05e

Please sign in to comment.