BF1977318

-Add Primary Key and foreign key constraints
This commit is contained in:
tspc 2008-06-02 12:43:11 +00:00
parent 3590fda81b
commit 435c86eccd
2 changed files with 10 additions and 0 deletions

View File

@ -8,3 +8,8 @@ UPDATE AD_Column SET FieldLength=22, IsUpdateable='N',Updated=TO_DATE('2008-06-0
ALTER TABLE R_IssueRecommendation MODIFY R_IssueRecommendation_ID NUMBER(10) NOT NULL
;
ALTER TABLE R_IssueRecommendation ADD (CONSTRAINT r_issuerecommendation_pkey PRIMARY KEY (r_issuerecommendation_id))
;
ALTER TABLE R_IssueKnown ADD (CONSTRAINT RIssueRecommendation_RIssueKno FOREIGN KEY (R_IssueRecommendation_ID) REFERENCES R_IssueRecommendation)
;

View File

@ -9,3 +9,8 @@ ALTER TABLE R_IssueRecommendation DROP COLUMN R_IssueRecommendation_ID
;
ALTER TABLE R_IssueRecommendation ADD COLUMN R_IssueRecommendation_ID NUMERIC(10) NOT NULL
;
ALTER TABLE R_IssueRecommendation ADD CONSTRAINT r_issuerecommendation_pkey PRIMARY KEY (r_issuerecommendation_id)
;
ALTER TABLE R_IssueKnown ADD CONSTRAINT RIssueRecommendation_RIssueKno FOREIGN KEY (R_IssueRecommendation_ID) REFERENCES R_IssueRecommendation
;