Commit b92ab6c9 by Clinton Blackburn

Corrected migration SQL

"key" is a keyword for MySQL. This was missed due to tests being run against SQLite.

ECOM-5195
parent ed5957f6
......@@ -12,12 +12,12 @@ def remove_duplicate_courses(apps, schema_editor):
' course_metadata_course AS c'
' JOIN ('
' SELECT'
' LOWER(key) AS key,'
' LOWER(`key`) AS `key`,'
' COUNT(1)'
' FROM'
' course_metadata_course'
' GROUP BY'
' LOWER(key)'
' LOWER(`key`)'
' HAVING'
' COUNT(1) > 1'
' ) AS dupes ON dupes.key = LOWER(c.key)')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment