Fix unique file constraint to allow identical filenames in different sub-paths (#1668)

* Upgrade Spring Boot to version 4.0.0

* Fix flyway config

* Fix unique file constraint to allow identical filenames in different sub-paths
This commit is contained in:
Aditya Chandel
2025-11-28 14:10:51 -07:00
committed by GitHub
parent d647fe401e
commit 3a9cb965e3
7 changed files with 54 additions and 12 deletions
@@ -1,7 +1,7 @@
app:
path-config: '/app/data'
bookdrop-folder: '/bookdrop'
version: 'v0.0.40'
version: 'development'
swagger:
enabled: ${SWAGGER_ENABLED:false}
remote-auth:
@@ -0,0 +1,6 @@
ALTER TABLE book
DROP INDEX IF EXISTS unique_file_library;
ALTER TABLE book
ADD CONSTRAINT unique_library_file_path UNIQUE (file_name, library_id, library_path_id, file_sub_path);