Mercurial > hg > orthanc
comparison OrthancServer/DatabaseWrapper.cpp @ 2120:4b02ec79728a
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 11:19:19 +0100 |
parents | b1291df2f780 |
children | 5a8840920121 |
comparison
equal
deleted
inserted
replaced
2119:e0517f25919e | 2120:4b02ec79728a |
---|---|
371 LOG(WARNING) << "Upgrading database version from 5 to 6"; | 371 LOG(WARNING) << "Upgrading database version from 5 to 6"; |
372 // No change in the DB schema, the step from version 5 to 6 only | 372 // No change in the DB schema, the step from version 5 to 6 only |
373 // consists in reconstructing the main DICOM tags information | 373 // consists in reconstructing the main DICOM tags information |
374 // (as more tags got included). | 374 // (as more tags got included). |
375 db_.BeginTransaction(); | 375 db_.BeginTransaction(); |
376 Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Patient); | 376 ServerToolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Patient); |
377 Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Study); | 377 ServerToolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Study); |
378 Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Series); | 378 ServerToolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Series); |
379 Toolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Instance); | 379 ServerToolbox::ReconstructMainDicomTags(*this, storageArea, ResourceType_Instance); |
380 db_.Execute("UPDATE GlobalProperties SET value=\"6\" WHERE property=" + | 380 db_.Execute("UPDATE GlobalProperties SET value=\"6\" WHERE property=" + |
381 boost::lexical_cast<std::string>(GlobalProperty_DatabaseSchemaVersion) + ";"); | 381 boost::lexical_cast<std::string>(GlobalProperty_DatabaseSchemaVersion) + ";"); |
382 db_.CommitTransaction(); | 382 db_.CommitTransaction(); |
383 version_ = 6; | 383 version_ = 6; |
384 } | 384 } |