Add option for merging categories

This commit is contained in:
aditya.chandel
2025-01-24 10:35:57 -07:00
parent dd8cb6ada6
commit 7b5e7859e9
8 changed files with 41 additions and 29 deletions
@@ -15,7 +15,7 @@ spring:
name: booklore-api
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:~/my-library-temp/config/local/db/booklore
url: 'jdbc:h2:~/my-library-temp/config/local/db/booklore;AUTO_SERVER=TRUE'
username: sa
password: password
jpa:
@@ -19,40 +19,40 @@ VALUES
('reader_setting', 'pdf', 'individual'),
('reader_setting', 'epub', 'individual');
-- Insert JSON data into app_settings
INSERT INTO app_settings (category, name, val)
VALUES
(
'quick_book_match',
'all_books',
'{
"defaultProvider": "Amazon",
"refreshCovers": false,
"defaultProvider": "Google",
"refreshCovers": true,
"mergeCategories": true,
"fieldOptions": {
"title": {
"default": "Amazon",
"p2": null,
"p1": null
"p2": "GoodReads",
"p1": "Amazon",
"default": "Google"
},
"description": {
"default": "Amazon",
"p2": null,
"p1": null
"p2": "GoodReads",
"p1": "Amazon",
"default": "Google"
},
"authors": {
"default": "Amazon",
"p2": null,
"p1": null
"p2": "GoodReads",
"p1": "Amazon",
"default": "Google"
},
"categories": {
"default": "Amazon",
"p2": null,
"p1": null
"p2": "Amazon",
"p1": "GoodReads",
"default": "Google"
},
"cover": {
"default": "Amazon",
"p2": null,
"p1": null
"p2": "GoodReads",
"p1": "Amazon",
"default": "Google"
}
}
}'