mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
Delete extra inventory_units that are for some unknown reason connected to shipments of orders to delete but not to orders to delete
This commit is contained in:
@@ -9,6 +9,9 @@ namespace :ofn do
|
||||
|
||||
sql_delete_from "
|
||||
spree_inventory_units #{where_order_id_in_orders_to_delete}"
|
||||
sql_delete_from "
|
||||
spree_inventory_units
|
||||
where shipment_id in (select id from spree_shipments #{where_order_id_in_orders_to_delete})"
|
||||
|
||||
truncate_adjustments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user