-
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.
Update tenure_application_purp_code.sql
- Loading branch information
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
CREATE TABLE fta_replication.tenure_application_purp_code ( | ||
tenure_application_purp_code VARCHAR(3) NOT NULL, | ||
description VARCHAR(120) NOT NULL, | ||
effective_date TIMESTAMP(0) NOT NULL, | ||
expiry_date TIMESTAMP(0) NOT NULL, | ||
update_timestamp TIMESTAMP(0) NOT NULL | ||
CREATE TABLE THE.TENURE_APPLICATION_PURP_CODE ( | ||
TENURE_APPLICATION_PURP_CODE VARCHAR(3), | ||
DESCRIPTION VARCHAR(120), | ||
EFFECTIVE_DATE TIMESTAMP(0), | ||
EXPIRY_DATE TIMESTAMP(0), | ||
UPDATE_TIMESTAMP TIMESTAMP(0), | ||
CONSTRAINT SYS_C0019423 CHECK ("TENURE_APPLICATION_PURP_CODE" IS NOT NULL), | ||
CONSTRAINT SYS_C0019425 CHECK ("DESCRIPTION" IS NOT NULL), | ||
CONSTRAINT SYS_C0019427 CHECK ("EFFECTIVE_DATE" IS NOT NULL), | ||
CONSTRAINT SYS_C0019429 CHECK ("EXPIRY_DATE" IS NOT NULL), | ||
CONSTRAINT SYS_C0019431 CHECK ("UPDATE_TIMESTAMP" IS NOT NULL), | ||
CONSTRAINT TAPC_PK PRIMARY KEY (TENURE_APPLICATION_PURP_CODE) | ||
); | ||
CREATE UNIQUE INDEX TAPC_PK ON THE.TENURE_APPLICATION_PURP_CODE (TENURE_APPLICATION_PURP_CODE); |