mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Trigger cascade_change_qu_id_stock is not longer needed
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user