Commit 6a8f500b authored by Steven Murray's avatar Steven Murray
Browse files

Reduced size of NB_COPIES and COPY_NB database columns from UINT64 to UINT8

parent 2d44c863
......@@ -33,7 +33,7 @@ CREATE TABLE STORAGE_CLASS(
STORAGE_CLASS_ID UINT64TYPE CONSTRAINT STORAGE_CLASS_SCI_NN NOT NULL,
DISK_INSTANCE_NAME VARCHAR(100) CONSTRAINT STORAGE_CLASS_DIN_NN NOT NULL,
STORAGE_CLASS_NAME VARCHAR(100) CONSTRAINT STORAGE_CLASS_SCN_NN NOT NULL,
NB_COPIES UINT64TYPE CONSTRAINT STORAGE_CLASS_NC_NN NOT NULL,
NB_COPIES UINT8TYPE CONSTRAINT STORAGE_CLASS_NC_NN NOT NULL,
USER_COMMENT VARCHAR(1000) CONSTRAINT STORAGE_CLASS_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR(100) CONSTRAINT STORAGE_CLASS_CLUN_NN NOT NULL,
CREATION_LOG_HOST_NAME VARCHAR(100) CONSTRAINT STORAGE_CLASS_CLHN_NN NOT NULL,
......@@ -64,7 +64,7 @@ CREATE TABLE TAPE_POOL(
);
CREATE TABLE ARCHIVE_ROUTE(
STORAGE_CLASS_ID UINT64TYPE CONSTRAINT ARCHIVE_ROUTE_SCI_NN NOT NULL,
COPY_NB UINT64TYPE CONSTRAINT ARCHIVE_ROUTE_CN_NN NOT NULL,
COPY_NB UINT8TYPE CONSTRAINT ARCHIVE_ROUTE_CN_NN NOT NULL,
TAPE_POOL_ID UINT64TYPE CONSTRAINT ARCHIVE_ROUTE_TPI_NN NOT NULL,
USER_COMMENT VARCHAR(1000) CONSTRAINT ARCHIVE_ROUTE_UC_NN NOT NULL,
CREATION_LOG_USER_NAME VARCHAR(100) CONSTRAINT ARCHIVE_ROUTE_CLUN_NN NOT NULL,
......@@ -207,7 +207,7 @@ CREATE TABLE TAPE_FILE(
FSEQ UINT64TYPE CONSTRAINT TAPE_FILE_F_NN NOT NULL,
BLOCK_ID UINT64TYPE CONSTRAINT TAPE_FILE_BI_NN NOT NULL,
LOGICAL_SIZE_IN_BYTES UINT64TYPE CONSTRAINT TAPE_FILE_CSIB_NN NOT NULL,
COPY_NB UINT64TYPE CONSTRAINT TAPE_FILE_CN_NN NOT NULL,
COPY_NB UINT8TYPE CONSTRAINT TAPE_FILE_CN_NN NOT NULL,
CREATION_TIME UINT64TYPE CONSTRAINT TAPE_FILE_CT_NN NOT NULL,
ARCHIVE_FILE_ID UINT64TYPE CONSTRAINT TAPE_FILE_AFI_NN NOT NULL,
SUPERSEDED_BY_VID VARCHAR(100),
......
......@@ -35,7 +35,7 @@ CREATE GLOBAL TEMPORARY TABLE TEMP_TAPE_FILE_INSERTION_BATCH(
FSEQ UINT64TYPE ,
BLOCK_ID UINT64TYPE ,
LOGICAL_SIZE_IN_BYTES UINT64TYPE ,
COPY_NB UINT64TYPE ,
COPY_NB UINT8TYPE ,
CREATION_TIME UINT64TYPE ,
ARCHIVE_FILE_ID UINT64TYPE
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment