From 3072593e68117c17e4ded904c6f7483b3d964c79 Mon Sep 17 00:00:00 2001 From: Richard Cordovano <rcordovano@basistech.com> Date: Tue, 10 Jan 2017 17:12:57 -0500 Subject: [PATCH] Fix problem for case db 4 to 6 upgrade --- .../java/src/org/sleuthkit/datamodel/SleuthkitCase.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java index cdd2d3ad3..40c2536d4 100755 --- a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java +++ b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java @@ -936,6 +936,13 @@ private int updateFromSchema4toSchema5(int schemaVersionNumber, CaseDbConnection statement.execute("CREATE TABLE file_encoding_types (encoding_type INTEGER PRIMARY KEY, name TEXT NOT NULL);"); initEncodingTypes(connection); + /* + * This needs to be done due to a Autopsy/TSK out of synch problem. + * Without this, it is possible to upgrade from version 4 to 5 and + * then 5 to 6, but not from 4 to 6. + */ + initReviewStatuses(connection); + // Add encoding type column to tsk_files_path // This should really have the FOREIGN KEY constraint but there are problems // getting that to work, so we don't add it on this upgrade path. -- GitLab