Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Drop index concurrently

Ania Warzecha38643e33121b
diff --git a/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py b/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py
index cab24be4b2..b5b6d58b27 100644
--- a/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py
+++ b/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py
@@ -19,8 +19,8 @@ class Migration(migrations.Migration):
# We can remove this operation when we squash migrations.
migrations.RunSQL(
"""
- DROP INDEX attribute_assignedproductattributevalue_product_id_805656f1
- ON attribute_assignedproductattributevalue;
+ DROP INDEX CONCURRENTLY IF EXISTS
+ attribute_assignedproductattributevalue_product_id_805656f1;
"""
),
AddIndexConcurrently(