Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp Wed Sep 30 17:18:39 2015 +0200 +++ b/OrthancServer/DatabaseWrapper.cpp Thu Oct 01 11:55:25 2015 +0200 @@ -37,6 +37,7 @@ #include "../Core/Logging.h" #include "../Core/Uuid.h" #include "EmbeddedResources.h" +#include "ServerToolbox.h" #include <stdio.h> #include <boost/lexical_cast.hpp> @@ -890,9 +891,8 @@ // No change in the DB schema, the step from version 5 to 6 only // consists in reconstructing the main DICOM tags information. db_.BeginTransaction(); - SetGlobalProperty(GlobalProperty_DatabaseSchemaVersion, "6"); - SetGlobalProperty(GlobalProperty_ReconstructStudiesTags, "1"); - SetGlobalProperty(GlobalProperty_ReconstructSeriesTags, "1"); + Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Study); + Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Series); db_.CommitTransaction(); version_ = 6; }