From df6d8f2cc05cca53bc4e00384f4ddaac1d8362e3 Mon Sep 17 00:00:00 2001
From: Steven Murray <Steven.Murray@cern.ch>
Date: Fri, 20 Sep 2019 21:54:08 +0200
Subject: [PATCH] Reverted UINT64TYPE changes that were made to USAGESTATS

---
 catalogue/common_catalogue_schema.sql | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/catalogue/common_catalogue_schema.sql b/catalogue/common_catalogue_schema.sql
index 4af1d1276e..ff97245efa 100644
--- a/catalogue/common_catalogue_schema.sql
+++ b/catalogue/common_catalogue_schema.sql
@@ -215,14 +215,14 @@ CREATE TABLE ACTIVITIES_WEIGHTS (
 );
 CREATE TABLE USAGESTATS (
   GID                     NUMERIC(6, 0)   DEFAULT 0 CONSTRAINT NN_USAGESTATS_GID NOT NULL,
-  TIMESTAMP               UINT64TYPE      DEFAULT 0 CONSTRAINT NN_USAGESTATS_TS NOT NULL,
-  MAXFILEID               UINT64TYPE    ,
-  FILECOUNT               UINT64TYPE    ,
-  FILESIZE                UINT64TYPE    ,
-  SEGCOUNT                UINT64TYPE    ,
-  SEGSIZE                 UINT64TYPE    ,
-  SEG2COUNT               UINT64TYPE    ,
-  SEG2SIZE                UINT64TYPE    ,
+  TIMESTAMP               NUMERIC(20, 0)  DEFAULT 0 CONSTRAINT NN_USAGESTATS_TS NOT NULL,
+  MAXFILEID               NUMERIC(20, 0),
+  FILECOUNT               NUMERIC(20, 0),
+  FILESIZE                NUMERIC(20, 0),
+  SEGCOUNT                NUMERIC(20, 0),
+  SEGSIZE                 NUMERIC(20, 0),
+  SEG2COUNT               NUMERIC(20, 0),
+  SEG2SIZE                NUMERIC(20, 0),
   CONSTRAINT PK_USAGESTATS_GID_TS PRIMARY KEY (GID, TIMESTAMP)
 );
 CREATE TABLE EXPERIMENTS (
-- 
GitLab