changeset 410:614031f7a16d OrthancPostgreSQL-5.0

OrthancPostgreSQL-5.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 15 Apr 2023 18:40:24 +0200
parents e25f4500b531
children 07622792f862 f08480528372 2e40bc2449a6
files Framework/Plugins/IndexBackend.cpp PostgreSQL/CMakeLists.txt PostgreSQL/NEWS
diffstat 3 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp	Sat Apr 15 14:55:21 2023 +0200
+++ b/Framework/Plugins/IndexBackend.cpp	Sat Apr 15 18:40:24 2023 +0200
@@ -2384,9 +2384,7 @@
   }
 
 
-#if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE)      // Macro introduced in 1.3.1
-#  if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 4)
-  // New primitive since Orthanc 1.5.4
+// New primitive since Orthanc 1.5.4
 bool IndexBackend::LookupResourceAndParent(int64_t& id,
                                            OrthancPluginResourceType& type,
                                            std::string& parentPublicId,
@@ -2444,12 +2442,8 @@
     return true;
   }
 }
-#  endif
-#endif
   
 
-#if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE)      // Macro introduced in 1.3.1
-#  if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 4)
   // New primitive since Orthanc 1.5.4
   void IndexBackend::GetAllMetadata(std::map<int32_t, std::string>& result,
                                     DatabaseManager& manager,
@@ -2486,8 +2480,6 @@
       }
     }
   }
-#  endif
-#endif
 
 
 #if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1
--- a/PostgreSQL/CMakeLists.txt	Sat Apr 15 14:55:21 2023 +0200
+++ b/PostgreSQL/CMakeLists.txt	Sat Apr 15 18:40:24 2023 +0200
@@ -21,7 +21,7 @@
 cmake_minimum_required(VERSION 2.8)
 project(OrthancPostgreSQL)
 
-set(ORTHANC_PLUGIN_VERSION "mainline")
+set(ORTHANC_PLUGIN_VERSION "5.0")
 
 set(ORTHANC_OPTIMAL_VERSION_MAJOR    1)
 set(ORTHANC_OPTIMAL_VERSION_MINOR    12)
--- a/PostgreSQL/NEWS	Sat Apr 15 14:55:21 2023 +0200
+++ b/PostgreSQL/NEWS	Sat Apr 15 18:40:24 2023 +0200
@@ -1,6 +1,10 @@
 Pending changes in the mainline
 ===============================
 
+
+Release 5.0 (2023-04-15)
+========================
+
 * Compatibility with Orthanc SDK 1.12.0 (communications between the
   Orthanc core and the database plugin using Google Protocol Buffers)
 * Upgraded dependencies for static builds (notably on Windows and LSB):