Add web site settings

This commit is contained in:
Greg Burri 2025-01-19 21:05:46 +01:00
parent 65489e7692
commit f1ea7841a2
8 changed files with 74 additions and 19 deletions

View file

@ -159,3 +159,11 @@ CREATE TABLE [Ingredient] (
) STRICT;
CREATE INDEX [Ingredient_order_index] ON [Ingredient]([order]);
-- Table not strict because [value] can story any type of data.
CREATE TABLE [Settings] (
[name] TEXT NOT NULL PRIMARY KEY,
[value] TEXT NOT NULL
);
INSERT INTO [Settings] ([name], [value]) VALUES ('new_user_registration_enabled', TRUE);