Commit fb948fc3 authored by Steven Murray's avatar Steven Murray Committed by Cedric Caffy
Browse files

Removed the 'NOT NULL' constraints from the MEDIA_TYPE.PRIMARY_DENSITY_CODE...

Removed the 'NOT NULL' constraints from the MEDIA_TYPE.PRIMARY_DENSITY_CODE and MEDIA_TYPE.SECONDARY_DENSITY_CODE columns.
parent 4939bf04
......@@ -132,8 +132,8 @@ CREATE TABLE MEDIA_TYPE(
MEDIA_TYPE_NAME VARCHAR(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,
CARTRIDGE VARCHAR(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,
CAPACITY_IN_BYTES BIGINT UNSIGNED CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,
PRIMARY_DENSITY_CODE TINYINT UNSIGNED CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,
SECONDARY_DENSITY_CODE TINYINT UNSIGNED CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,
PRIMARY_DENSITY_CODE TINYINT UNSIGNED,
SECONDARY_DENSITY_CODE TINYINT UNSIGNED,
NB_WRAPS INT UNSIGNED,
MIN_LPOS BIGINT UNSIGNED,
MAX_LPOS BIGINT UNSIGNED,
......
......@@ -161,8 +161,8 @@ CREATE TABLE MEDIA_TYPE(
MEDIA_TYPE_NAME VARCHAR2(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,
CARTRIDGE VARCHAR2(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,
CAPACITY_IN_BYTES NUMERIC(20, 0) CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,
PRIMARY_DENSITY_CODE NUMERIC(3, 0) CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,
SECONDARY_DENSITY_CODE NUMERIC(3, 0) CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,
PRIMARY_DENSITY_CODE NUMERIC(3, 0),
SECONDARY_DENSITY_CODE NUMERIC(3, 0),
NB_WRAPS NUMERIC(10, 0),
MIN_LPOS NUMERIC(20, 0),
MAX_LPOS NUMERIC(20, 0),
......
......@@ -144,8 +144,8 @@ CREATE TABLE MEDIA_TYPE(
MEDIA_TYPE_NAME VARCHAR(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,
CARTRIDGE VARCHAR(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,
CAPACITY_IN_BYTES NUMERIC(20, 0) CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,
PRIMARY_DENSITY_CODE NUMERIC(3, 0) CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,
SECONDARY_DENSITY_CODE NUMERIC(3, 0) CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,
PRIMARY_DENSITY_CODE NUMERIC(3, 0),
SECONDARY_DENSITY_CODE NUMERIC(3, 0),
NB_WRAPS NUMERIC(10, 0),
MIN_LPOS NUMERIC(20, 0),
MAX_LPOS NUMERIC(20, 0),
......
......@@ -120,8 +120,8 @@ CREATE TABLE MEDIA_TYPE(
MEDIA_TYPE_NAME VARCHAR(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,
CARTRIDGE VARCHAR(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,
CAPACITY_IN_BYTES INTEGER CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,
PRIMARY_DENSITY_CODE INTEGER CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,
SECONDARY_DENSITY_CODE INTEGER CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,
PRIMARY_DENSITY_CODE INTEGER,
SECONDARY_DENSITY_CODE INTEGER,
NB_WRAPS INTEGER,
MIN_LPOS INTEGER,
MAX_LPOS INTEGER,
......
......@@ -3965,8 +3965,8 @@ namespace catalogue{
" MEDIA_TYPE_NAME VARCHAR2(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,"
" CARTRIDGE VARCHAR2(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,"
" CAPACITY_IN_BYTES NUMERIC(20, 0) CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,"
" PRIMARY_DENSITY_CODE NUMERIC(3, 0) CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,"
" SECONDARY_DENSITY_CODE NUMERIC(3, 0) CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,"
" PRIMARY_DENSITY_CODE NUMERIC(3, 0),"
" SECONDARY_DENSITY_CODE NUMERIC(3, 0),"
" NB_WRAPS NUMERIC(10, 0),"
" MIN_LPOS NUMERIC(20, 0),"
" MAX_LPOS NUMERIC(20, 0),"
......@@ -4365,8 +4365,8 @@ namespace catalogue{
" MEDIA_TYPE_NAME VARCHAR(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,"
" CARTRIDGE VARCHAR(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,"
" CAPACITY_IN_BYTES BIGINT UNSIGNED CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,"
" PRIMARY_DENSITY_CODE TINYINT UNSIGNED CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,"
" SECONDARY_DENSITY_CODE TINYINT UNSIGNED CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,"
" PRIMARY_DENSITY_CODE TINYINT UNSIGNED,"
" SECONDARY_DENSITY_CODE TINYINT UNSIGNED,"
" NB_WRAPS INT UNSIGNED,"
" MIN_LPOS BIGINT UNSIGNED,"
" MAX_LPOS BIGINT UNSIGNED,"
......@@ -4752,8 +4752,8 @@ namespace catalogue{
" MEDIA_TYPE_NAME VARCHAR(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,"
" CARTRIDGE VARCHAR(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,"
" CAPACITY_IN_BYTES INTEGER CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,"
" PRIMARY_DENSITY_CODE INTEGER CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,"
" SECONDARY_DENSITY_CODE INTEGER CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,"
" PRIMARY_DENSITY_CODE INTEGER,"
" SECONDARY_DENSITY_CODE INTEGER,"
" NB_WRAPS INTEGER,"
" MIN_LPOS INTEGER,"
" MAX_LPOS INTEGER,"
......@@ -5161,8 +5161,8 @@ namespace catalogue{
" MEDIA_TYPE_NAME VARCHAR(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,"
" CARTRIDGE VARCHAR(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,"
" CAPACITY_IN_BYTES NUMERIC(20, 0) CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,"
" PRIMARY_DENSITY_CODE NUMERIC(3, 0) CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,"
" SECONDARY_DENSITY_CODE NUMERIC(3, 0) CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,"
" PRIMARY_DENSITY_CODE NUMERIC(3, 0),"
" SECONDARY_DENSITY_CODE NUMERIC(3, 0),"
" NB_WRAPS NUMERIC(10, 0),"
" MIN_LPOS NUMERIC(20, 0),"
" MAX_LPOS NUMERIC(20, 0),"
......
......@@ -102,8 +102,8 @@ CREATE TABLE MEDIA_TYPE(
MEDIA_TYPE_NAME VARCHAR(100) CONSTRAINT MEDIA_TYPE_MTN_NN NOT NULL,
CARTRIDGE VARCHAR(100) CONSTRAINT MEDIA_TYPE_C_NN NOT NULL,
CAPACITY_IN_BYTES UINT64TYPE CONSTRAINT MEDIA_TYPE_CIB_NN NOT NULL,
PRIMARY_DENSITY_CODE UINT8TYPE CONSTRAINT MEDIA_TYPE_PDC_NN NOT NULL,
SECONDARY_DENSITY_CODE UINT8TYPE CONSTRAINT MEDIA_TYPE_SDC_NN NOT NULL,
PRIMARY_DENSITY_CODE UINT8TYPE,
SECONDARY_DENSITY_CODE UINT8TYPE,
NB_WRAPS UINT32TYPE,
MIN_LPOS UINT64TYPE,
MAX_LPOS 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