diff --git a/catalogue/CatalogueTest.cpp b/catalogue/CatalogueTest.cpp
index 259279e493125008fe5e54b3e5548d0442a050f3..19f659c11679d79cabd883ecfbbb144fe99bdeb3 100644
--- a/catalogue/CatalogueTest.cpp
+++ b/catalogue/CatalogueTest.cpp
@@ -39,6 +39,7 @@
 #include "common/exception/Exception.hpp"
 #include "common/exception/UserError.hpp"
 #include "common/make_unique.hpp"
+#include "common/Constants.hpp"
 #include "rdbms/wrapper/ConnFactoryFactory.hpp"
 #include "rdbms/Conn.hpp"
 #include "rdbms/ConnPool.hpp"
@@ -12242,8 +12243,8 @@ TEST_P(cta_catalogue_CatalogueTest, getSchemaVersion) {
   using namespace cta;
 
   const std::map<std::string,uint64_t> schemaVersion = {
-    {"SCHEMA_VERSION_MAJOR", 0},
-    {"SCHEMA_VERSION_MINOR", 0}
+    {"SCHEMA_VERSION_MAJOR", CTA_SCHEMA_VERSION_MAJOR},
+    {"SCHEMA_VERSION_MINOR", CTA_SCHEMA_VERSION_MINOR}
   };
 
   const auto schemaDbVersion = m_catalogue->getSchemaVersion();
diff --git a/common/Constants.hpp b/common/Constants.hpp
index 0ce76c46a0ce638751a9045ab6e590991fb26b07..3943b9697c4b319c65439e4492cd5b7255932463 100644
--- a/common/Constants.hpp
+++ b/common/Constants.hpp
@@ -27,6 +27,8 @@
 namespace cta {
 
 const int CA_MAXVIDLEN = 6; // maximum length for a VID
+const int CTA_SCHEMA_VERSION_MAJOR = 0;
+const int CTA_SCHEMA_VERSION_MINOR = 0;
 
 } // namespace cta