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

cta-catalogue-schema-verify ignores the migration-related tables...

cta-catalogue-schema-verify ignores the migration-related tables (ERR$_TAPE_FILE and TEMP_REMOVE_CASTOR_METADATA)
parent c717a874
......@@ -158,10 +158,18 @@ cta::rdbms::Login::DbType SQLiteDatabaseMetadataGetter::getDbType(){
OracleDatabaseMetadataGetter::OracleDatabaseMetadataGetter(cta::rdbms::Conn & conn):DatabaseMetadataGetter(conn){}
OracleDatabaseMetadataGetter::~OracleDatabaseMetadataGetter(){}
cta::rdbms::Login::DbType OracleDatabaseMetadataGetter::getDbType(){
return cta::rdbms::Login::DbType::DBTYPE_ORACLE;
}
std::list<std::string> OracleDatabaseMetadataGetter::getTableNames(){
std::list<std::string> tableNames = DatabaseMetadataGetter::getTableNames();
//Ignore migration-related tables
removeObjectNameContaining(tableNames,{"ERR$_TAPE_FILE","TEMP_REMOVE_CASTOR_METADATA"});
return tableNames;
}
MySQLDatabaseMetadataGetter::MySQLDatabaseMetadataGetter(cta::rdbms::Conn& conn):DatabaseMetadataGetter(conn) {}
MySQLDatabaseMetadataGetter::~MySQLDatabaseMetadataGetter(){}
cta::rdbms::Login::DbType MySQLDatabaseMetadataGetter::getDbType(){
......
......@@ -83,6 +83,7 @@ class OracleDatabaseMetadataGetter: public DatabaseMetadataGetter{
public:
OracleDatabaseMetadataGetter(cta::rdbms::Conn & conn);
cta::rdbms::Login::DbType getDbType() override;
std::list<std::string> getTableNames() override;
virtual ~OracleDatabaseMetadataGetter();
};
......
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