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) { ...@@ -148,7 +148,8 @@ void DropSchemaCmd::dropSqliteCatalogueSchema(rdbms::Conn &conn) {
"LOGICAL_LIBRARY", "LOGICAL_LIBRARY",
"MOUNT_POLICY", "MOUNT_POLICY",
"ACTIVITIES_WEIGHTS", "ACTIVITIES_WEIGHTS",
"USAGESTATS"}; "USAGESTATS"
};
dropDatabaseTables(conn, tablesToDrop); dropDatabaseTables(conn, tablesToDrop);
} catch(exception::Exception &ex) { } catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str()); throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
...@@ -176,7 +177,9 @@ void DropSchemaCmd::dropMysqlCatalogueSchema(rdbms::Conn &conn) { ...@@ -176,7 +177,9 @@ void DropSchemaCmd::dropMysqlCatalogueSchema(rdbms::Conn &conn) {
"TAPE_POOL", "TAPE_POOL",
"LOGICAL_LIBRARY", "LOGICAL_LIBRARY",
"MOUNT_POLICY", "MOUNT_POLICY",
"ACTIVITIES_WEIGHTS"}; "ACTIVITIES_WEIGHTS",
"USAGESTATS"
};
dropDatabaseTables(conn, tablesToDrop); dropDatabaseTables(conn, tablesToDrop);
std::list<std::string> triggersToDrop = { std::list<std::string> triggersToDrop = {
...@@ -241,7 +244,8 @@ void DropSchemaCmd::dropOracleCatalogueSchema(rdbms::Conn &conn) { ...@@ -241,7 +244,8 @@ void DropSchemaCmd::dropOracleCatalogueSchema(rdbms::Conn &conn) {
"TAPE_POOL", "TAPE_POOL",
"LOGICAL_LIBRARY", "LOGICAL_LIBRARY",
"MOUNT_POLICY", "MOUNT_POLICY",
"ACTIVITIES_WEIGHTS" "ACTIVITIES_WEIGHTS",
"USAGESTATS"
}; };
dropDatabaseTables(conn, tablesToDrop); dropDatabaseTables(conn, tablesToDrop);
...@@ -273,7 +277,8 @@ void DropSchemaCmd::dropPostgresCatalogueSchema(rdbms::Conn &conn) { ...@@ -273,7 +277,8 @@ void DropSchemaCmd::dropPostgresCatalogueSchema(rdbms::Conn &conn) {
"TAPE_POOL", "TAPE_POOL",
"LOGICAL_LIBRARY", "LOGICAL_LIBRARY",
"MOUNT_POLICY", "MOUNT_POLICY",
"ACTIVITIES_WEIGHTS" "ACTIVITIES_WEIGHTS",
"USAGESTATS"
}; };
dropDatabaseTables(conn, tablesToDrop); 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