products update

This commit is contained in:
Jake Kasper
2025-08-21 20:14:53 -04:00
parent 691be0531a
commit 81f800b5de

View File

@@ -97,9 +97,16 @@ BEGIN
('Sticker Spreader', 'Bond', adjuvant_cat_id, 'liquid', 'Pinolene + Surfactants', 'Improves adhesion and spreading of sprays') ('Sticker Spreader', 'Bond', adjuvant_cat_id, 'liquid', 'Pinolene + Surfactants', 'Improves adhesion and spreading of sprays')
ON CONFLICT (name, brand) DO NOTHING; ON CONFLICT (name, brand) DO NOTHING;
-- Insert common tank mix products
INSERT INTO products (name, brand, category_id, product_type, active_ingredients, description) VALUES
('Tank Mix: 2,4-D + Triclopyr', 'Custom', post_emergent_cat_id, 'liquid', '2,4-D + Triclopyr', 'Common tank mix for tough broadleaf and woody weeds'),
('Tank Mix: Prodiamine + Fertilizer', 'Custom', pre_emergent_cat_id, 'granular', 'Prodiamine + 19-0-6', 'Pre-emergent with slow-release fertilizer'),
('Tank Mix: Fungicide + Insecticide', 'Custom', fungicide_cat_id, 'liquid', 'Propiconazole + Bifenthrin', 'Disease and insect control combination')
ON CONFLICT (name, brand) DO NOTHING;
END $$; END $$;
-- Insert application rates for key products -- Insert application rates for key products in separate block
DO $$ DO $$
DECLARE DECLARE
product_record RECORD; product_record RECORD;
@@ -181,13 +188,4 @@ BEGIN
ON CONFLICT DO NOTHING; ON CONFLICT DO NOTHING;
END IF; END IF;
END $$; END $$;
-- Create some common product combinations that users often mix
INSERT INTO products (name, brand, category_id, product_type, active_ingredients, description) VALUES
('Tank Mix: 2,4-D + Triclopyr', 'Custom', post_emergent_cat_id, 'liquid', '2,4-D + Triclopyr', 'Common tank mix for tough broadleaf and woody weeds'),
('Tank Mix: Prodiamine + Fertilizer', 'Custom', pre_emergent_cat_id, 'granular', 'Prodiamine + 19-0-6', 'Pre-emergent with slow-release fertilizer'),
('Tank Mix: Fungicide + Insecticide', 'Custom', fungicide_cat_id, 'liquid', 'Propiconazole + Bifenthrin', 'Disease and insect control combination')
ON CONFLICT (name, brand) DO NOTHING;
COMMIT;