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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user