Skip to content

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

Move to adding index concurrently and move data migration to a separate step

Ania Warzecha000bfe17fb0b
diff --git a/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py b/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py
index bd7cb4f64e..afbdf3c93a 100644
--- a/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py
+++ b/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py
@@ -12,9 +12,9 @@ class Migration(migrations.Migration):
operations = [
migrations.RunSQL(
- '''
+ """
CREATE INDEX CONCURRENTLY "assignedproductattrvalue_product_idx"
ON assignedproductattributevalue("product") using btree;
- '''
+ """
)
]