fixed flaws in sample schema files

This commit is contained in:
hyung-hwan 2018-11-30 04:49:32 +00:00
parent 2b3c6c1b76
commit e839933b60
3 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ CREATE TABLE issue_change_file_list (
createdby VARCHAR(32) NOT NULL, createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32) NOT NULL, updatedby VARCHAR(32) NOT NULL,
UNIQUE KEY issue_change_file_list_id (projectid, issueid, name), UNIQUE KEY issue_change_file_list_id (projectid, issueid, filename),
CONSTRAINT issue_change_file_list_projectid FOREIGN KEY (projectid) REFERENCES project(id) CONSTRAINT issue_change_file_list_projectid FOREIGN KEY (projectid) REFERENCES project(id)
ON DELETE RESTRICT ON UPDATE CASCADE, ON DELETE RESTRICT ON UPDATE CASCADE,

View File

@ -152,7 +152,7 @@ CREATE TABLE "cpot_issue_change_file_list" (
"updatedon" TIMESTAMP NOT NULL, "updatedon" TIMESTAMP NOT NULL,
"createdby" VARCHAR(32) NOT NULL, "createdby" VARCHAR(32) NOT NULL,
"updatedby" VARCHAR(32) NOT NULL, "updatedby" VARCHAR(32) NOT NULL,
UNIQUE ("projectid", "issueid", "name"), UNIQUE ("projectid", "issueid", "filename"),
CONSTRAINT issue_change_file_list_c1 FOREIGN KEY ("projectid") REFERENCES "cpot_project"("id"), CONSTRAINT issue_change_file_list_c1 FOREIGN KEY ("projectid") REFERENCES "cpot_project"("id"),
CONSTRAINT issue_change_file_list_c2 FOREIGN KEY ("projectid","issueid","issuesno") REFERENCES "cpot_issue_change"("projectid","id","sno") CONSTRAINT issue_change_file_list_c2 FOREIGN KEY ("projectid","issueid","issuesno") REFERENCES "cpot_issue_change"("projectid","id","sno")
); );

View File

@ -180,7 +180,7 @@ CREATE TABLE issue_change_file_list (
createdby VARCHAR(32) NOT NULL, createdby VARCHAR(32) NOT NULL,
updatedby VARCHAR(32) NOT NULL, updatedby VARCHAR(32) NOT NULL,
UNIQUE (projectid, issueid, name), UNIQUE (projectid, issueid, filename),
CONSTRAINT issue_change_file_list_projectid FOREIGN KEY (projectid) REFERENCES project(id) CONSTRAINT issue_change_file_list_projectid FOREIGN KEY (projectid) REFERENCES project(id)
ON DELETE RESTRICT ON UPDATE CASCADE, ON DELETE RESTRICT ON UPDATE CASCADE,