diff --git a/codepot/etc/codepot.mysql b/codepot/etc/codepot.mysql index 1a0835ff..25c092e1 100644 --- a/codepot/etc/codepot.mysql +++ b/codepot/etc/codepot.mysql @@ -161,7 +161,7 @@ CREATE TABLE issue_change_file_list ( createdby 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) ON DELETE RESTRICT ON UPDATE CASCADE, diff --git a/codepot/etc/codepot.oracle b/codepot/etc/codepot.oracle index b9164fa4..1c3153ed 100644 --- a/codepot/etc/codepot.oracle +++ b/codepot/etc/codepot.oracle @@ -152,7 +152,7 @@ CREATE TABLE "cpot_issue_change_file_list" ( "updatedon" TIMESTAMP NOT NULL, "createdby" 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_c2 FOREIGN KEY ("projectid","issueid","issuesno") REFERENCES "cpot_issue_change"("projectid","id","sno") ); diff --git a/codepot/etc/codepot.pgsql b/codepot/etc/codepot.pgsql index 2a88ca2b..8247bcac 100644 --- a/codepot/etc/codepot.pgsql +++ b/codepot/etc/codepot.pgsql @@ -180,7 +180,7 @@ CREATE TABLE issue_change_file_list ( createdby 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) ON DELETE RESTRICT ON UPDATE CASCADE,