This commit is contained in:
Bernd Bestel
2021-07-12 20:45:30 +02:00
parent 71cede74a3
commit e1c702f3d0

View File

@@ -88,7 +88,7 @@ BEGIN
AND type = 'recipe'
AND recipe_id IS NOT NULL;
-- Enforce "when null then empty" for certain columns
-- Enforce "when empty then null" for certain columns
UPDATE meal_plan
SET recipe_id = NULL
WHERE id = NEW.id
@@ -311,7 +311,7 @@ BEGIN
AND type = 'recipe'
AND recipe_id IS NOT NULL;
-- Enforce "when null then empty" for certain columns
-- Enforce "when empty then null" for certain columns
UPDATE meal_plan
SET recipe_id = NULL
WHERE id = NEW.id