mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Merge pull request #5152 from Matt-Yorkley/missing-indexes
Add missing indexes to spree_orders and spree_products
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddUserIdIndexToSpreeOrders < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :spree_orders, :user_id
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddSupplierIdIndexToSpreeProducts < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :spree_products, :supplier_id
|
||||
end
|
||||
end
|
||||
@@ -575,6 +575,7 @@ ActiveRecord::Schema.define(:version => 20200406085833) do
|
||||
add_index "spree_orders", ["distributor_id"], :name => "index_spree_orders_on_distributor_id"
|
||||
add_index "spree_orders", ["number"], :name => "index_orders_on_number"
|
||||
add_index "spree_orders", ["order_cycle_id"], :name => "index_spree_orders_on_order_cycle_id"
|
||||
add_index "spree_orders", ["user_id"], :name => "index_spree_orders_on_user_id"
|
||||
|
||||
create_table "spree_payment_methods", :force => true do |t|
|
||||
t.string "type"
|
||||
@@ -724,6 +725,7 @@ ActiveRecord::Schema.define(:version => 20200406085833) do
|
||||
add_index "spree_products", ["permalink"], :name => "index_products_on_permalink"
|
||||
add_index "spree_products", ["permalink"], :name => "permalink_idx_unique", :unique => true
|
||||
add_index "spree_products", ["primary_taxon_id"], :name => "index_spree_products_on_primary_taxon_id"
|
||||
add_index "spree_products", ["supplier_id"], :name => "index_spree_products_on_supplier_id"
|
||||
|
||||
create_table "spree_products_promotion_rules", :id => false, :force => true do |t|
|
||||
t.integer "product_id"
|
||||
|
||||
Reference in New Issue
Block a user