Mercurial > hg > orthanc
comparison OrthancServer/DatabaseWrapper.cpp @ 1669:a412ad57f0f9 db-changes
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 01 Oct 2015 11:55:25 +0200 |
parents | de1413733c97 |
children | 16955f8fec4d |
comparison
equal
deleted
inserted
replaced
1668:de1413733c97 | 1669:a412ad57f0f9 |
---|---|
35 | 35 |
36 #include "../Core/DicomFormat/DicomArray.h" | 36 #include "../Core/DicomFormat/DicomArray.h" |
37 #include "../Core/Logging.h" | 37 #include "../Core/Logging.h" |
38 #include "../Core/Uuid.h" | 38 #include "../Core/Uuid.h" |
39 #include "EmbeddedResources.h" | 39 #include "EmbeddedResources.h" |
40 #include "ServerToolbox.h" | |
40 | 41 |
41 #include <stdio.h> | 42 #include <stdio.h> |
42 #include <boost/lexical_cast.hpp> | 43 #include <boost/lexical_cast.hpp> |
43 | 44 |
44 namespace Orthanc | 45 namespace Orthanc |
888 { | 889 { |
889 LOG(WARNING) << "Upgrading database version from 5 to 6"; | 890 LOG(WARNING) << "Upgrading database version from 5 to 6"; |
890 // No change in the DB schema, the step from version 5 to 6 only | 891 // No change in the DB schema, the step from version 5 to 6 only |
891 // consists in reconstructing the main DICOM tags information. | 892 // consists in reconstructing the main DICOM tags information. |
892 db_.BeginTransaction(); | 893 db_.BeginTransaction(); |
893 SetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "6"); | 894 Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Study); |
894 SetGlobalProperty(GlobalProperty_ReconstructStudiesTags, "1"); | 895 Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Series); |
895 SetGlobalProperty(GlobalProperty_ReconstructSeriesTags, "1"); | |
896 db_.CommitTransaction(); | 896 db_.CommitTransaction(); |
897 version_ = 6; | 897 version_ = 6; |
898 } | 898 } |
899 } | 899 } |
900 | 900 |