Merge pull request #23965 from edx/ihtram/reverse-migration-fix
added reverse_sql method attribute to avoid sql operation error YONK-1588
This commit is contained in:
@@ -13,6 +13,5 @@ class Migration(migrations.Migration):
|
|||||||
operations = [
|
operations = [
|
||||||
migrations.RunSQL(
|
migrations.RunSQL(
|
||||||
'CREATE INDEX dcc_role_users_user_role_idx ON django_comment_client_role_users(user_id, role_id);',
|
'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;'),
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user