diff --git a/changelog/75_UNRELEASED_xxxx-xx-xx.md b/changelog/75_UNRELEASED_xxxx-xx-xx.md index f1b061ff..8e6643d0 100644 --- a/changelog/75_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/75_UNRELEASED_xxxx-xx-xx.md @@ -23,7 +23,7 @@ ### Recipes -- xxx +- Optimized that when creating a recipe, the desired serving amount is now initially prefilled by the recipe's base serving amount ### Meal plan diff --git a/migrations/0237.sql b/migrations/0237.sql new file mode 100644 index 00000000..14f480aa --- /dev/null +++ b/migrations/0237.sql @@ -0,0 +1,6 @@ +CREATE TRIGGER recipes_desired_servings_default AFTER INSERT ON recipes +BEGIN + UPDATE recipes + SET desired_servings = base_servings + WHERE id = NEW.id; +END;