# HG changeset patch # User Alain Mazy # Date 1758549888 -7200 # Node ID 0b2fd32eafc7141ca200d86209c39f8188e661d3 # Parent 9097dd8235b810148749cab4592ea23fe6149298 cleanup diff -r 9097dd8235b8 -r 0b2fd32eafc7 PostgreSQL/Plugins/PostgreSQLIndex.cpp --- 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();