mirror of
https://github.com/grocy/grocy.git
synced 2025-10-19 11:34:45 +00:00
Make it possible to merge products (closes #243)
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
CREATE TRIGGER cascade_product_removal AFTER DELETE ON products
|
||||
BEGIN
|
||||
DELETE FROM stock
|
||||
WHERE product_id = OLD.id;
|
||||
|
||||
DELETE FROM stock_log
|
||||
WHERE product_id = OLD.id;
|
||||
|
||||
|
Reference in New Issue
Block a user