Mercurial > hg > orthanc
changeset 1710:d72cf0c11f42
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Oct 2015 17:26:11 +0200 |
parents | 9a04ad916831 |
children | a7745f3a2cc4 9d8bb6bc2890 |
files | OrthancServer/DatabaseWrapper.cpp |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp Tue Oct 13 16:54:21 2015 +0200 +++ b/OrthancServer/DatabaseWrapper.cpp Fri Oct 16 17:26:11 2015 +0200 @@ -360,10 +360,15 @@ { LOG(WARNING) << "Upgrading database version from 5 to 6"; // No change in the DB schema, the step from version 5 to 6 only - // consists in reconstructing the main DICOM tags information. + // consists in reconstructing the main DICOM tags information + // (as more tags got included). db_.BeginTransaction(); + Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Patient); Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Study); Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Series); + Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Instance); + db_.Execute("UPDATE GlobalProperties SET value=\"6\" WHERE property=" + + boost::lexical_cast<std::string>(GlobalProperty_DatabaseSchemaVersion) + ";"); db_.CommitTransaction(); version_ = 6; }