Skip to content

Commit d8d53af

Browse files
author
Vianney Veremme
committed
Update insert_recipe procedure calls to match new parameters and include status name
1 parent 5a9246f commit d8d53af

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

procedures/insert/recipe.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CREATE OR REPLACE PROCEDURE insert_recipe (
1111
IN p_servings INT,
1212
IN p_difficulty_level TINYINT,
1313
IN p_estimated_cost TINYINT,
14-
IN p_number_of_reviews INT,
1514
IN p_recipe_source VARCHAR(255),
1615
IN p_recipe_status_name VARCHAR(25)
1716
)
@@ -38,7 +37,6 @@ BEGIN
3837
servings,
3938
difficulty_level,
4039
estimated_cost,
41-
number_of_reviews,
4240
recipe_source,
4341
recipe_status,
4442
modification_date
@@ -50,7 +48,6 @@ BEGIN
5048
p_servings,
5149
p_difficulty_level,
5250
p_estimated_cost,
53-
p_number_of_reviews,
5451
p_recipe_source,
5552
v_status_id,
5653
CURRENT_TIMESTAMP

setup/z_mock/recipe.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
USE smartcooking;
33

44
-- Fill the database with mock data
5-
CALL insert_recipe(1, 1, 30, 3, 'www.source.com', 1);
6-
CALL insert_recipe(2, 2, 45, 2, 'www.source.com', 2);
7-
CALL insert_recipe(3, 3, 60, 1, 'www.source.com', 1);
8-
CALL insert_recipe(4, 4, 75, 3, 'www.source.com', 3);
9-
CALL insert_recipe(4, 5, 90, 2, 'www.source.com', 1);
5+
CALL insert_recipe(1, 1, 30, 5, 3, 1, 1, 'www.source.com', 'draft');
6+
CALL insert_recipe(2, 2, 45, 5, 2, 1, 2, 'www.source.com', 'draft');
7+
CALL insert_recipe(3, 3, 60, 10, 1, 2, 1, 'www.source.com', 'draft');
8+
CALL insert_recipe(4, 4, 75, 15, 3, 3, 3, 'www.source.com', 'draft');
9+
CALL insert_recipe(4, 5, 90, 100, 2, 3, 2, 'www.source.com', 'draft');

0 commit comments

Comments
 (0)