fixed flaws in sample schema files
This commit is contained in:
parent
2b3c6c1b76
commit
e839933b60
@ -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,
|
||||||
|
@ -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")
|
||||||
);
|
);
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user