Commit fc0784ed authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

Added install command for ctaschemachecker

parent e3eb0d75
......@@ -308,6 +308,8 @@ set (SCHEMA_CHECKER_LIB_SRC_FILES
add_library (ctaschemachecker SHARED
${SCHEMA_CHECKER_LIB_SRC_FILES})
install (TARGETS ctaschemachecker DESTINATION usr/${CMAKE_INSTALL_LIBDIR})
add_executable(cta-catalogue-schema-verify
VerifySchemaCmd.cpp
VerifySchemaCmdLineArgs.cpp
......
......@@ -72,7 +72,7 @@ add_executable(cta-statistics-save
MysqlStatisticsSchema.cpp
)
target_link_libraries (cta-statistics-save ctastatistics ctacatalogue ctaschemachecker)
target_link_libraries (cta-statistics-save ctastatistics)
set_property(TARGET cta-statistics-save APPEND PROPERTY INSTALL_RPATH ${PROTOBUF3_RPATH})
set_property(TARGET cta-statistics-save APPEND PROPERTY INSTALL_RPATH ${ORACLE-INSTANTCLIENT_RPATH})
......@@ -85,7 +85,7 @@ add_executable(cta-statistics-update
StatisticsUpdateCmdMain.cpp
)
target_link_libraries (cta-statistics-update ctacatalogue ctaschemachecker)
target_link_libraries (cta-statistics-update ctastatistics)
set_property(TARGET cta-statistics-update APPEND PROPERTY INSTALL_RPATH ${PROTOBUF3_RPATH})
set_property(TARGET cta-statistics-update APPEND PROPERTY INSTALL_RPATH ${ORACLE-INSTANTCLIENT_RPATH})
......
......@@ -64,7 +64,7 @@ int StatisticsUpdateCmd::exceptionThrowingMain(const int argc, char *const *cons
std::unique_ptr<cta::catalogue::SchemaChecker> catalogueChecker;
catalogueChecker = catalogueCheckerBuilder.build();
SchemaChecker::Status tapeTableStatus = catalogueChecker->checkTableContainsColumns("TAPE",{"VID"});
SchemaChecker::Status tapeTableStatus = catalogueChecker->checkTableContainsColumns("TAPE",{"VID","NB_MASTER_FILES","MASTER_DATA_IN_BYTES"});
SchemaChecker::Status tapeFileTableStatus = catalogueChecker->checkTableContainsColumns("TAPE_FILE",{"ARCHIVE_FILE_ID"});
SchemaChecker::Status archiveFileTableStatus = catalogueChecker->checkTableContainsColumns("ARCHIVE_FILE",{"SIZE_IN_BYTES"});
......@@ -87,7 +87,7 @@ int StatisticsUpdateCmd::exceptionThrowingMain(const int argc, char *const *cons
// printUsage
//------------------------------------------------------------------------------
void StatisticsUpdateCmd::printUsage(std::ostream &os) {
StatisticsUpdateCmd::printUsage(os);
StatisticsUpdateCmdLineArgs::printUsage(os);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment