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.

Re-evaluate indexes.

Matthew Kennedyca9514053342
diff --git a/core/db/migrate/20210512191732_create_spree_cms_pages.rb b/core/db/migrate/20210512191732_create_spree_cms_pages.rb
index 894783e83e..14489460e3 100644
--- a/core/db/migrate/20210512191732_create_spree_cms_pages.rb
+++ b/core/db/migrate/20210512191732_create_spree_cms_pages.rb
@@ -15,8 +15,8 @@ class CreateSpreeCmsPages < ActiveRecord::Migration[5.2]
t.timestamps
end
- add_index :spree_cms_pages, [:title, :type, :store_id]
add_index :spree_cms_pages, [:slug, :store_id]
+ add_index :spree_cms_pages, [:title, :type, :store_id]
add_index :spree_cms_pages, [:store_id, :locale, :type]
end
end
diff --git a/core/db/migrate/20210514204251_create_spree_cms_sections.rb b/core/db/migrate/20210514204251_create_spree_cms_sections.rb
index 50594a154c..93c09caaf3 100644
--- a/core/db/migrate/20210514204251_create_spree_cms_sections.rb
+++ b/core/db/migrate/20210514204251_create_spree_cms_sections.rb
@@ -16,6 +16,7 @@ class CreateSpreeCmsSections < ActiveRecord::Migration[5.2]
t.timestamps
end
+ add_index :spree_cms_sections, :type
add_index :spree_cms_sections, :position
end
end