Added additional values to settings.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- Add migration script here
|
||||
|
||||
ALTER TABLE public.settings
|
||||
ADD allergens_text text,
|
||||
ADD bio_info text;
|
||||
|
||||
UPDATE settings SET
|
||||
allergens_text = 'Produkt kann Spuren von Erdnüssen, Gluten, Krebstieren, Lupinen, Schalenfrüchte, Sesam, Soja und Weichtieren enthalten.',
|
||||
bio_info = '+aus kontrolliert biologischem Anbau.'
|
||||
WHERE id = 1;
|
||||
@@ -373,6 +373,8 @@ async fn get_settings_route(
|
||||
id: 0,
|
||||
mhd: "".to_string(),
|
||||
bio: "".to_string(),
|
||||
allergens_text: "".to_string(),
|
||||
bio_info: "".to_string(),
|
||||
}
|
||||
))
|
||||
}
|
||||
@@ -396,6 +398,8 @@ async fn update_settings_route(
|
||||
id: 0,
|
||||
mhd: "".to_string(),
|
||||
bio: "".to_string(),
|
||||
allergens_text: "".to_string(),
|
||||
bio_info: "".to_string(),
|
||||
}
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user