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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
fix migration with stock_item_by_loc_var_id_deleted_at index (#11431)
Kacper Mękarskif4468821e936
diff --git a/core/db/migrate/20210929090344_create_stock_item_stock_location_id_variant_id_coalesce_deleted_at_unique_index.rb b/core/db/migrate/20210929090344_create_stock_item_stock_location_id_variant_id_coalesce_deleted_at_unique_index.rbindex 02e26e71a6..8f8b6fb9ed 100644--- a/core/db/migrate/20210929090344_create_stock_item_stock_location_id_variant_id_coalesce_deleted_at_unique_index.rb+++ b/core/db/migrate/20210929090344_create_stock_item_stock_location_id_variant_id_coalesce_deleted_at_unique_index.rb@@ -8,7 +8,7 @@ class CreateStockItemStockLocationIdVariantIdCoalesceDeletedAtUniqueIndex < ActiON spree_stock_items(stock_location_id,variant_id,- (COALESCE(deleted_at, CAST('1970-01-01 00:00:00' AS #{deleted_at_data_type})))+ (COALESCE(deleted_at, CAST('1970-01-01' AS #{deleted_at_data_type}))));SQLend