From 6c77e1aa445c909b5a2cca3d11b4f470ac7c74d3 Mon Sep 17 00:00:00 2001
From: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch>
Date: Thu, 20 Jun 2019 09:03:40 +0200
Subject: [PATCH] Added the UsageStats table to the hard-coded list of objects
 to be dropped. This should fix the CI system tests

---
 catalogue/DropSchemaCmd.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/catalogue/DropSchemaCmd.cpp b/catalogue/DropSchemaCmd.cpp
index 38072cc9f3..7ca2a8e100 100644
--- a/catalogue/DropSchemaCmd.cpp
+++ b/catalogue/DropSchemaCmd.cpp
@@ -147,7 +147,8 @@ void DropSchemaCmd::dropSqliteCatalogueSchema(rdbms::Conn &conn) {
       "TAPE_POOL",
       "LOGICAL_LIBRARY",
       "MOUNT_POLICY",
-      "ACTIVITIES_WEIGHTS"};
+      "ACTIVITIES_WEIGHTS",
+      "USAGESTATS"};
     dropDatabaseTables(conn, tablesToDrop);
   } catch(exception::Exception &ex) {
     throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str());
-- 
GitLab