From 61864b0d55af2a05ddd1d9dfefa4e38da35c50f4 Mon Sep 17 00:00:00 2001 From: Raman Arora Date: Thu, 27 Feb 2020 08:07:32 -0500 Subject: [PATCH] Address review comment. --- .../datamodel/CorrelationAttributeInstance.java | 2 +- .../centralrepository/datamodel/RdbmsCentralRepoFactory.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/CorrelationAttributeInstance.java b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/CorrelationAttributeInstance.java index a8974f8e5a..12fd9eac04 100644 --- a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/CorrelationAttributeInstance.java +++ b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/CorrelationAttributeInstance.java @@ -260,7 +260,7 @@ public class CorrelationAttributeInstance implements Serializable { for (Account.Type type : Account.Type.PREDEFINED_ACCOUNT_TYPES) { // Skip Phone and Email accounts as there are already Correlation types defined for those. if (type != Account.Type.EMAIL && type != Account.Type.PHONE) { - defaultCorrelationTypes.add(new CorrelationAttributeInstance.Type(correlationTypeId, type.getDisplayName(), type.getTypeName().toLowerCase(), true, true)); //NON-NLS + defaultCorrelationTypes.add(new CorrelationAttributeInstance.Type(correlationTypeId, type.getDisplayName(), type.getTypeName().toLowerCase() + "_acct", true, true)); //NON-NLS correlationTypeId++; } } diff --git a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/RdbmsCentralRepoFactory.java b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/RdbmsCentralRepoFactory.java index 963809c5d7..2fa248598e 100644 --- a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/RdbmsCentralRepoFactory.java +++ b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/RdbmsCentralRepoFactory.java @@ -701,8 +701,10 @@ public class RdbmsCentralRepoFactory { + "created_date " + getBigIntType(selectedPlatform) + " ," + "modified_date " + getBigIntType(selectedPlatform) + " ," + "status_id integer NOT NULL," + + "examiner_id integer NOT NULL," + "CONSTRAINT uuid_unique UNIQUE(uuid)," - + "FOREIGN KEY (status_id) REFERENCES persona_status(status_id)" + + "FOREIGN KEY (status_id) REFERENCES persona_status(status_id), " + + "FOREIGN KEY (examiner_id) REFERENCES examiners(id)" + ")"; }