mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Trigger cascade_change_qu_id_stock is not longer needed
This commit is contained in:
parent
ed2239c1f6
commit
c45e5d1794
@ -78,14 +78,6 @@ FROM products_old;
|
|||||||
|
|
||||||
DROP TABLE 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;
|
DROP VIEW stock_current_location_content;
|
||||||
CREATE VIEW stock_current_location_content
|
CREATE VIEW stock_current_location_content
|
||||||
AS
|
AS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user