From 6c976087de6d65bb0b2e1cb387e100a325827a20 Mon Sep 17 00:00:00 2001 From: jendib Date: Tue, 3 Mar 2015 00:26:40 +0100 Subject: [PATCH] Missing file + TODO --- docs-core/src/main/resources/db/update/dbupdate-007-0.sql | 2 ++ .../main/java/com/sismics/docs/rest/resource/FileResource.java | 1 + 2 files changed, 3 insertions(+) create mode 100644 docs-core/src/main/resources/db/update/dbupdate-007-0.sql diff --git a/docs-core/src/main/resources/db/update/dbupdate-007-0.sql b/docs-core/src/main/resources/db/update/dbupdate-007-0.sql new file mode 100644 index 00000000..a1eba010 --- /dev/null +++ b/docs-core/src/main/resources/db/update/dbupdate-007-0.sql @@ -0,0 +1,2 @@ +alter table T_FILE alter column FIL_IDDOC_C set null; +update T_CONFIG set CFG_VALUE_C='7' where CFG_ID_C='DB_VERSION'; diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/FileResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/FileResource.java index 38696c11..ec1db12b 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/FileResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/FileResource.java @@ -204,6 +204,7 @@ public class FileResource extends BaseResource { } // Update the file + // TODO Reorder files to put the new one at the end file.setDocumentId(documentId); fileDao.updateDocument(file);