ephraimbuddy commented on code in PR #62234:
URL: https://github.com/apache/airflow/pull/62234#discussion_r2938994438


##########
airflow-core/src/airflow/migrations/utils.py:
##########
@@ -75,8 +75,8 @@ def mysql_drop_foreignkey_if_exists(constraint_name, 
table_name, op):
                 CONSTRAINT_NAME = '{constraint_name}' AND
                 CONSTRAINT_TYPE = 'FOREIGN KEY'
         ) THEN
-            ALTER TABLE {table_name}
-            DROP CONSTRAINT {constraint_name};
+            ALTER TABLE `{table_name}`
+            DROP CONSTRAINT `{constraint_name}`;

Review Comment:
   This has worked since 2.0, the only fix here is the added  backticks for 
security reasons 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to