testing the test database
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 58s
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 58s
This commit is contained in:
@@ -904,11 +904,17 @@ DECLARE
|
||||
stir_fry_recipe_id BIGINT;
|
||||
|
||||
-- Store & Brand IDs
|
||||
loblaws_id BIGINT; coke_id BIGINT; kraft_id BIGINT; maple_leaf_id BIGINT; dempsters_id BIGINT; no_name_id BIGINT; pc_id BIGINT;
|
||||
loblaws_id BIGINT;
|
||||
coke_id BIGINT;
|
||||
kraft_id BIGINT;
|
||||
maple_leaf_id BIGINT;
|
||||
dempsters_id BIGINT;
|
||||
no_name_id BIGINT;
|
||||
pc_id BIGINT;
|
||||
|
||||
-- Ingredient (Master Item) IDs
|
||||
chicken_breast_id BIGINT; rice_id BIGINT; broccoli_id BIGINT;
|
||||
ground_beef_id BIGINT; pasta_id BIGINT; tomatoes_id BIGINT; onions_id BIGINT; garlic_id BIGINT;
|
||||
ground_beef_id BIGINT; pasta_item_id BIGINT; tomatoes_id BIGINT; onions_id BIGINT; garlic_id BIGINT;
|
||||
bell_peppers_id BIGINT; carrots_id BIGINT; soy_sauce_id BIGINT;
|
||||
soda_item_id BIGINT; turkey_item_id BIGINT; bread_item_id BIGINT; cheese_item_id BIGINT;
|
||||
|
||||
@@ -951,7 +957,7 @@ BEGIN
|
||||
SELECT mgi.id INTO rice_id FROM public.master_grocery_items mgi WHERE mgi.name = 'rice';
|
||||
SELECT mgi.id INTO broccoli_id FROM public.master_grocery_items mgi WHERE mgi.name = 'broccoli';
|
||||
SELECT mgi.id INTO ground_beef_id FROM public.master_grocery_items mgi WHERE mgi.name = 'ground beef';
|
||||
SELECT mgi.id INTO pasta_id FROM public.master_grocery_items mgi WHERE mgi.name = 'pasta';
|
||||
SELECT mgi.id INTO pasta_item_id FROM public.master_grocery_items mgi WHERE mgi.name = 'pasta';
|
||||
SELECT mgi.id INTO tomatoes_id FROM public.master_grocery_items mgi WHERE mgi.name = 'tomatoes';
|
||||
SELECT mgi.id INTO onions_id FROM public.master_grocery_items mgi WHERE mgi.name = 'onions';
|
||||
SELECT mgi.id INTO garlic_id FROM public.master_grocery_items mgi WHERE mgi.name = 'garlic';
|
||||
@@ -966,7 +972,7 @@ BEGIN
|
||||
-- Insert ingredients for each recipe
|
||||
INSERT INTO public.recipe_ingredients (recipe_id, master_item_id, quantity, unit) VALUES
|
||||
(chicken_recipe_id, chicken_breast_id, 2, 'items'), (chicken_recipe_id, rice_id, 200, 'g'), (chicken_recipe_id, broccoli_id, 300, 'g'),
|
||||
(bolognese_recipe_id, ground_beef_id, 500, 'g'), (bolognese_recipe_id, pasta_id, 400, 'g'), (bolognese_recipe_id, tomatoes_id, 800, 'g'), (bolognese_recipe_id, onions_id, 1, 'items'), (bolognese_recipe_id, garlic_id, 2, 'cloves'),
|
||||
(bolognese_recipe_id, ground_beef_id, 500, 'g'), (bolognese_recipe_id, pasta_item_id, 400, 'g'), (bolognese_recipe_id, tomatoes_id, 800, 'g'), (bolognese_recipe_id, onions_id, 1, 'items'), (bolognese_recipe_id, garlic_id, 2, 'cloves'),
|
||||
(stir_fry_recipe_id, broccoli_id, 200, 'g'), (stir_fry_recipe_id, bell_peppers_id, 1, 'items'), (stir_fry_recipe_id, carrots_id, 2, 'items'), (stir_fry_recipe_id, onions_id, 1, 'items'), (stir_fry_recipe_id, soy_sauce_id, 50, 'ml')
|
||||
ON CONFLICT (id) DO NOTHING;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user