Skip to content

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

Add missing migrations (#18119)

Iga Karbowiakf6f3105e6578
diff --git a/saleor/menu/migrations/0024_menuitem_menu_menuitem_tree_id_lft_idx.py b/saleor/menu/migrations/0024_menuitem_menu_menuitem_tree_id_lft_idx.py
new file mode 100644
index 0000000000..4e53c86dc4
--- /dev/null
+++ b/saleor/menu/migrations/0024_menuitem_menu_menuitem_tree_id_lft_idx.py
@@ -0,0 +1,23 @@
+# Generated by Django 5.2.5 on 2025-09-01 12:19
+
+from django.contrib.postgres.operations import AddIndexConcurrently
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ atomic = False
+
+ dependencies = [
+ ("menu", "0023_alter_menu_metadata_alter_menu_private_metadata_and_more"),
+ ("page", "0031_alter_page_metadata_alter_page_private_metadata_and_more"),
+ ("product", "0202_category_product_category_tree_id_lf1e1"),
+ ]
+
+ operations = [
+ AddIndexConcurrently(
+ model_name="menuitem",
+ index=models.Index(
+ fields=["tree_id", "lft"], name="menu_menuitem_tree_id_lft_idx"
+ ),
+ ),
+ ]
diff --git a/saleor/product/migrations/0202_category_product_category_tree_id_lf1e1.py b/saleor/product/migrations/0202_category_product_category_tree_id_lf1e1.py
new file mode 100644
index 0000000000..0fa15a57d8
--- /dev/null
+++ b/saleor/product/migrations/0202_category_product_category_tree_id_lf1e1.py
@@ -0,0 +1,21 @@
+# Generated by Django 5.2.5 on 2025-09-01 12:19
+
+from django.contrib.postgres.operations import AddIndexConcurrently
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("product", "0201_productvariant_variant_gin"),
+ ]
+
+ atomic = False
+
+ operations = [
+ AddIndexConcurrently(
+ model_name="category",
+ index=models.Index(
+ fields=["tree_id", "lft"], name="product_category_tree_id_lf1e1"
+ ),
+ ),
+ ]