Add default_search to user_settings
Some checks are pending
Build docker image / Build-Docker-Image (push) Waiting to run
rust-clippy analyze / Run rust-clippy analyzing (push) Waiting to run

Add migration to add a nullable VARCHAR(32) column with a CHECK
constraint restricting values to book, author, series, translator.
Update SQLx query artifacts, handlers, and serializers to read and
write the new field.
This commit is contained in:
2026-02-16 21:09:56 +01:00
parent 54d47b2d63
commit 963f9ae6cb
8 changed files with 63 additions and 23 deletions

View File

@@ -0,0 +1,4 @@
-- Add default search setting: NULL = not selected, or one of: book, author, series, translator
ALTER TABLE user_settings
ADD COLUMN default_search VARCHAR(32) NULL
CHECK (default_search IS NULL OR default_search IN ('book', 'author', 'series', 'translator'));