-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GRAD2-3183 - Adds new district report table (#719)
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
api/src/main/resources/db/migration/1.0/V1.0.122__DDL-CREATE_TABLE-DISTRICT_REPORT.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-------------------------------------------------------- | ||
-- DDL for Table DISTRICT_REPORT | ||
-------------------------------------------------------- | ||
|
||
CREATE TABLE DISTRICT_REPORT | ||
( DISTRICT_REPORT_ID RAW(16) DEFAULT SYS_GUID(), | ||
REPORT CLOB, | ||
REPORT_TYPE_CODE VARCHAR2(20 BYTE) NOT NULL ENABLE, | ||
DISTRICT_ID RAW(16) NOT NULL ENABLE, | ||
CREATE_USER VARCHAR2(30 BYTE) DEFAULT USER NOT NULL ENABLE, | ||
CREATE_DATE DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE, | ||
UPDATE_USER VARCHAR2(30 BYTE) DEFAULT USER NOT NULL ENABLE, | ||
UPDATE_DATE DATE DEFAULT SYSTIMESTAMP NOT NULL ENABLE, | ||
CONSTRAINT DISTRICT_REPORT_ID_PK PRIMARY KEY (DISTRICT_REPORT_ID) | ||
USING INDEX TABLESPACE API_GRAD_IDX ENABLE | ||
) SEGMENT CREATION IMMEDIATE | ||
NOCOMPRESS LOGGING | ||
TABLESPACE API_GRAD_DATA NO INMEMORY | ||
LOB (REPORT) STORE AS SECUREFILE ( | ||
TABLESPACE API_GRAD_BLOB_DATA ENABLE STORAGE IN ROW | ||
NOCACHE LOGGING NOCOMPRESS KEEP_DUPLICATES) ; | ||
|
||
alter table DISTRICT_REPORT | ||
add constraint DIS_REP_TYPE_CD_FK foreign key(REPORT_TYPE_CODE) | ||
references REPORT_TYPE_CODE(REPORT_TYPE_CODE); |