Skip to content
Snippets Groups Projects
Commit 94d1e0da authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Turns out the tables list is hard-coded 4 times. Not going to refactor this now...

parent 6c77e1aa
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,8 @@ void DropSchemaCmd::dropSqliteCatalogueSchema(rdbms::Conn &conn) {
"LOGICAL_LIBRARY",
"MOUNT_POLICY",
"ACTIVITIES_WEIGHTS",
"USAGESTATS"};
"USAGESTATS"
};
dropDatabaseTables(conn, tablesToDrop);
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
......@@ -176,7 +177,9 @@ void DropSchemaCmd::dropMysqlCatalogueSchema(rdbms::Conn &conn) {
"TAPE_POOL",
"LOGICAL_LIBRARY",
"MOUNT_POLICY",
"ACTIVITIES_WEIGHTS"};
"ACTIVITIES_WEIGHTS",
"USAGESTATS"
};
dropDatabaseTables(conn, tablesToDrop);
std::list<std::string> triggersToDrop = {
......@@ -241,7 +244,8 @@ void DropSchemaCmd::dropOracleCatalogueSchema(rdbms::Conn &conn) {
"TAPE_POOL",
"LOGICAL_LIBRARY",
"MOUNT_POLICY",
"ACTIVITIES_WEIGHTS"
"ACTIVITIES_WEIGHTS",
"USAGESTATS"
};
dropDatabaseTables(conn, tablesToDrop);
......@@ -273,7 +277,8 @@ void DropSchemaCmd::dropPostgresCatalogueSchema(rdbms::Conn &conn) {
"TAPE_POOL",
"LOGICAL_LIBRARY",
"MOUNT_POLICY",
"ACTIVITIES_WEIGHTS"
"ACTIVITIES_WEIGHTS",
"USAGESTATS"
};
dropDatabaseTables(conn, tablesToDrop);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment