From 002a24416eeceadbd0bd8f84ccea6ce17e7a10f1 Mon Sep 17 00:00:00 2001 From: ihtram Date: Tue, 3 Mar 2020 17:39:52 +0500 Subject: [PATCH] added reverse_sql method attribute to avoid sql operation error --- .../django_comment_common/migrations/0008_role_user_index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/django_comment_common/migrations/0008_role_user_index.py b/openedx/core/djangoapps/django_comment_common/migrations/0008_role_user_index.py index eb224ab01d..d1a766acc6 100644 --- a/openedx/core/djangoapps/django_comment_common/migrations/0008_role_user_index.py +++ b/openedx/core/djangoapps/django_comment_common/migrations/0008_role_user_index.py @@ -13,6 +13,5 @@ class Migration(migrations.Migration): operations = [ migrations.RunSQL( 'CREATE INDEX dcc_role_users_user_role_idx ON django_comment_client_role_users(user_id, role_id);', - reverse_sql=migrations.RunSQL.noop, - ), + reverse_sql='DROP INDEX dcc_role_users_user_role_idx ON django_comment_client_role_users;'), ]