Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move to adding index concurrently and move data migration to a separate step
Ania Warzecha502cae38ed95
diff --git a/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py b/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.pyindex afbdf3c93a..2c91c0eb05 100644--- a/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py+++ b/saleor/attribute/migrations/0035_assignedproductattributevalue_product_add_index.py@@ -13,8 +13,9 @@ class Migration(migrations.Migration):operations = [migrations.RunSQL("""- CREATE INDEX CONCURRENTLY "assignedproductattrvalue_product_idx"- ON assignedproductattributevalue("product") using btree;+ CREATE INDEX IF NOT EXISTS attribute_assignedproductattributevalue_product_id_805656f1+ ON attribute_assignedproductattributevalue USING btree+ (product_id ASC NULLS LAST);""")]