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): ...@@ -12,12 +12,12 @@ def remove_duplicate_courses(apps, schema_editor):
' course_metadata_course AS c' ' course_metadata_course AS c'
' JOIN (' ' JOIN ('
' SELECT' ' SELECT'
' LOWER(key) AS key,' ' LOWER(`key`) AS `key`,'
' COUNT(1)' ' COUNT(1)'
' FROM' ' FROM'
' course_metadata_course' ' course_metadata_course'
' GROUP BY' ' GROUP BY'
' LOWER(key)' ' LOWER(`key`)'
' HAVING' ' HAVING'
' COUNT(1) > 1' ' COUNT(1) > 1'
' ) AS dupes ON dupes.key = LOWER(c.key)') ' ) 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