Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Added missing page builder indexes to speed things up (#13051)

Damian Legawiec325addaeaf80
diff --git a/core/db/migrate/20250825175217_add_missing_page_builder_indexes.rb b/core/db/migrate/20250825175217_add_missing_page_builder_indexes.rb
new file mode 100644
index 0000000000..d56164140c
--- /dev/null
+++ b/core/db/migrate/20250825175217_add_missing_page_builder_indexes.rb
@@ -0,0 +1,7 @@
+class AddMissingPageBuilderIndexes < ActiveRecord::Migration[7.2]
+ def change
+ add_index :spree_themes, %w[store_id default], name: 'index_spree_themes_on_store_id_and_default', if_not_exists: true
+ add_index :spree_page_links, %w[parent_type parent_id position], name: 'index_spree_page_links_parent_with_position', if_not_exists: true
+ add_index :spree_page_blocks, :deleted_at, if_not_exists: true
+ end
+end