changeset 742:0b2fd32eafc7 pg-next-699

cleanup
author Alain Mazy <am@orthanc.team>
date Mon, 22 Sep 2025 16:04:48 +0200
parents 9097dd8235b8
children b31e78cf18eb
files PostgreSQL/Plugins/PostgreSQLIndex.cpp
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/PostgreSQL/Plugins/PostgreSQLIndex.cpp	Mon Sep 22 15:48:21 2025 +0200
+++ b/PostgreSQL/Plugins/PostgreSQLIndex.cpp	Mon Sep 22 16:04:48 2025 +0200
@@ -279,22 +279,7 @@
             LOG(WARNING) << "Upgrading DB schema by applying PrepareIndex.sql";
             // apply all idempotent changes that are in the PrepareIndex.sql
             ApplyPrepareIndex(t, manager);
-
-            if (!LookupGlobalIntegerProperty(currentRevision, manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_DatabasePatchLevel))
-            {
-              LOG(ERROR) << "No Database revision found after the upgrade !";
-              throw Orthanc::OrthancException(Orthanc::ErrorCode_Database);
-            }
-
-            LOG(WARNING) << "Database revision after the upgrade is " << currentRevision;
-
-            if (currentRevision != CURRENT_DB_REVISION)
-            {
-              LOG(ERROR) << "Invalid database revision after the upgrade !";
-              throw Orthanc::OrthancException(Orthanc::ErrorCode_Database);
-            }
           }
-
         }
 
         t.Commit();