Mercurial > hg > orthanc-databases
comparison PostgreSQL/Plugins/PostgreSQLIndex.cpp @ 450:c437ec7be2b0 pg-transactions
removed redundant statements that are now in PrepareIndex.sql
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 17 Jan 2024 17:30:08 +0100 |
parents | f2427f94d879 |
children | f0976163dbe1 |
comparison
equal
deleted
inserted
replaced
449:da0586c5cbd8 | 450:c437ec7be2b0 |
---|---|
66 std::string query; | 66 std::string query; |
67 | 67 |
68 Orthanc::EmbeddedResources::GetFileResource | 68 Orthanc::EmbeddedResources::GetFileResource |
69 (query, Orthanc::EmbeddedResources::POSTGRESQL_PREPARE_INDEX); | 69 (query, Orthanc::EmbeddedResources::POSTGRESQL_PREPARE_INDEX); |
70 t.GetDatabaseTransaction().ExecuteMultiLines(query); | 70 t.GetDatabaseTransaction().ExecuteMultiLines(query); |
71 | |
72 SetGlobalIntegerProperty(manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_DatabaseSchemaVersion, 6); | |
73 SetGlobalIntegerProperty(manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_DatabasePatchLevel, 2); | |
74 SetGlobalIntegerProperty(manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_HasCreateInstance, 3); // this is the 3rd version ! | |
75 SetGlobalIntegerProperty(manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_HasTrigramIndex, 1); | |
76 SetGlobalIntegerProperty(manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_GetTotalSizeIsFast, 1); | |
77 SetGlobalIntegerProperty(manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_HasFastCountResources, 1); | |
78 SetGlobalIntegerProperty(manager, MISSING_SERVER_IDENTIFIER, Orthanc::GlobalProperty_GetLastChangeIndex, 1); | |
79 } | 71 } |
80 | 72 |
81 void PostgreSQLIndex::ConfigureDatabase(DatabaseManager& manager, | 73 void PostgreSQLIndex::ConfigureDatabase(DatabaseManager& manager, |
82 bool hasIdentifierTags, | 74 bool hasIdentifierTags, |
83 const std::list<IdentifierTag>& identifierTags) | 75 const std::list<IdentifierTag>& identifierTags) |