Skip to content

Commit 5ded3c7

Browse files
authored
Adding code trackers table creation to postgres install script (#165)
1 parent 0d8c2c8 commit 5ded3c7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

install/sql/postgres/testlink_create_tables.sql

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,24 @@ CREATE TABLE /*prefix*/testproject_issuetracker
804804
);
805805

806806

807+
CREATE TABLE /*prefix*/codetrackers
808+
(
809+
"id" BIGSERIAL NOT NULL ,
810+
"name" VARCHAR(100) NOT NULL,
811+
"type" INTEGER NOT NULL DEFAULT '0',
812+
"cfg" TEXT,
813+
PRIMARY KEY ("id")
814+
);
815+
CREATE UNIQUE INDEX /*prefix*/codetrackers_uidx1 ON /*prefix*/codetrackers ("name");
816+
817+
818+
CREATE TABLE /*prefix*/testproject_codetracker
819+
(
820+
"testproject_id" BIGINT NOT NULL DEFAULT '0' REFERENCES /*prefix*/testprojects (id) ON DELETE CASCADE,
821+
"codetracker_id" BIGINT NOT NULL DEFAULT '0' REFERENCES /*prefix*/codetrackers (id) ON DELETE CASCADE,
822+
PRIMARY KEY ("testproject_id")
823+
);
824+
807825

808826
CREATE TABLE /*prefix*/reqmgrsystems
809827
(

0 commit comments

Comments
 (0)