fix
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- Remove waste_percentage column from product_recipes table
|
||||
ALTER TABLE product_recipes DROP COLUMN waste_percentage;
|
||||
@@ -0,0 +1,5 @@
|
||||
-- Add waste_percentage column to product_recipes table
|
||||
ALTER TABLE product_recipes
|
||||
ADD COLUMN waste_percentage DECIMAL(5,2) DEFAULT 0.00 CHECK (waste_percentage >= 0 AND waste_percentage <= 100);
|
||||
|
||||
COMMENT ON COLUMN product_recipes.waste_percentage IS 'Waste percentage for this ingredient (0-100). Used to calculate gross quantity needed including waste.';
|
||||
Reference in New Issue
Block a user