diff OrthancServer/DatabaseWrapper.cpp @ 1711:5ebd6cbb3da8 db-changes

Backed out changeset 2ad22b2970a2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Oct 2015 17:36:07 +0200
parents 2ad22b2970a2
children a7745f3a2cc4
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp	Tue Oct 13 17:48:30 2015 +0200
+++ b/OrthancServer/DatabaseWrapper.cpp	Fri Oct 16 17:36:07 2015 +0200
@@ -359,13 +359,11 @@
     if (version_ == 5)
     {
       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.
       db_.BeginTransaction();
-      ExecuteUpgradeScript(db_, EmbeddedResources::UPGRADE_DATABASE_5_TO_6);      
-      // Reconstruct the main DICOM tags information.
-      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_.CommitTransaction();
       version_ = 6;
     }    
@@ -486,4 +484,5 @@
       target[key] = s.ColumnString(1);
     }
   }
+
 }