RED-9658: Do not delete entityLogs after mongo migration #608
@ -52,6 +52,7 @@ public class StorageToMongoCopyService {
|
||||
log.info("File found, now saving in mongodb");
|
||||
fileManagementStorageService.saveEntityLog(dossierFile.dossierId, dossierFile.fileId, entityLogFromStorage.get());
|
||||
log.info("Deleting old file from storage");
|
||||
fileManagementStorageService.storeJSONObject(dossierFile.dossierId, dossierFile.fileId, FileType.ENTITY_LOG_BAK, entityLogFromStorage.get());
|
||||
fileManagementStorageService.deleteObject(dossierFile.dossierId, dossierFile.fileId, FileType.ENTITY_LOG);
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,6 +25,7 @@ public enum FileType {
|
||||
DOCUMENT_POSITION(".json"),
|
||||
DOCUMENT_PAGES(".json"),
|
||||
ENTITY_LOG(".json"),
|
||||
ENTITY_LOG_BAK(".json"),
|
||||
COMPONENT_LOG(".json"),
|
||||
MIGRATED_IDS(".json"),
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user