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)" + ")"; }