Skip to content

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

Fix the migration that created a Category with incorrect MPTT values (#19695)

Marcin Wcisło16e7ea956a4c
diff --git a/saleor/product/migrations/0173_create_default_category_and_product_type.py b/saleor/product/migrations/0173_create_default_category_and_product_type.py
index 60c8293176..6ea1db41d7 100644
--- a/saleor/product/migrations/0173_create_default_category_and_product_type.py
+++ b/saleor/product/migrations/0173_create_default_category_and_product_type.py
@@ -10,9 +10,9 @@ def create_default_category(apps, schema_editor):
Category.objects.create(
name="Default Category",
slug="default-category",
- lft=0,
- rght=0,
- tree_id=0,
+ lft=1,
+ rght=2,
+ tree_id=1,
level=0,
)