Restored missing trigger after products table reorg (references #801)

This commit is contained in:
Bernd Bestel
2020-11-11 21:43:02 +01:00
parent 0245a925b7
commit e7491fd8d1

View File

@@ -78,6 +78,14 @@ FROM products_old;
DROP TABLE products_old;
CREATE TRIGGER cascade_change_qu_id_stock AFTER UPDATE ON products
BEGIN
UPDATE recipes_pos
SET qu_id = NEW.qu_id_stock
WHERE product_id = NEW.id
AND qu_id = OLD.qu_id_stock;
END;
DROP VIEW stock_current_location_content;
CREATE VIEW stock_current_location_content
AS