From 53ebe0334507e299121a357966df1fc135669793 Mon Sep 17 00:00:00 2001
From: Steven Murray <Steven.Murray@cern.ch>
Date: Fri, 17 May 2019 19:21:54 +0200
Subject: [PATCH] Fixed issue #507 by changing SUPERSEDED_BY_FSEQ column type
 from INTEGER to NUMERIC(20, 0)

---
 catalogue/common_catalogue_schema.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catalogue/common_catalogue_schema.sql b/catalogue/common_catalogue_schema.sql
index 26468f8986..786209fda4 100644
--- a/catalogue/common_catalogue_schema.sql
+++ b/catalogue/common_catalogue_schema.sql
@@ -180,7 +180,7 @@ CREATE TABLE TAPE_FILE(
   CREATION_TIME            NUMERIC(20, 0) CONSTRAINT TAPE_FILE_CT_NN   NOT NULL,
   ARCHIVE_FILE_ID          NUMERIC(20, 0) CONSTRAINT TAPE_FILE_AFI_NN  NOT NULL,
   SUPERSEDED_BY_VID        VARCHAR(100),
-  SUPERSEDED_BY_FSEQ       INTEGER,
+  SUPERSEDED_BY_FSEQ       NUMERIC(20, 0),
   CONSTRAINT TAPE_FILE_PK PRIMARY KEY(VID, FSEQ),
   CONSTRAINT TAPE_FILE_TAPE_FK FOREIGN KEY(VID)
     REFERENCES TAPE(VID),
-- 
GitLab