From ef37204b34eb9a49f3baeeedd644729378e3e952 Mon Sep 17 00:00:00 2001 From: Muhammad Qasim Gulzar <19186089+qasimgulzar@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:40:53 +0500 Subject: [PATCH] fix: mysql specific change --- .../content/learning_sequences/migrations/0001_initial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/content/learning_sequences/migrations/0001_initial.py b/openedx/core/djangoapps/content/learning_sequences/migrations/0001_initial.py index 0346303d01ea..171fdfee03c9 100644 --- a/openedx/core/djangoapps/content/learning_sequences/migrations/0001_initial.py +++ b/openedx/core/djangoapps/content/learning_sequences/migrations/0001_initial.py @@ -11,7 +11,7 @@ from django.conf import settings from django.db import connection -def run_before_migrate(apps, migrations): +def run_before_migrate(migrations): if connection.vendor == 'mysql': # MySQL: utf8_bin collation return [migrations.RunSQL('ALTER TABLE learning_sequences_learningcontext MODIFY context_key VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin;',reverse_sql=migrations.RunSQL.noop,), @@ -117,4 +117,4 @@ class Migration(migrations.Migration): name='coursesection', index_together={('learning_context', 'ordering')}, ), - ]+run_before_migrate(migrations) + ] + run_before_migrate(migrations)