added the defintion of the new code_review table in codepot.mysql
This commit is contained in:
parent
d6a2a3ad31
commit
5b691e780f
@ -68,7 +68,7 @@ CREATE TABLE wiki_attachment (
|
|||||||
|
|
||||||
CONSTRAINT wiki_attachment_wikiid FOREIGN KEY (projectid,wikiname) REFERENCES wiki(projectid,name)
|
CONSTRAINT wiki_attachment_wikiid FOREIGN KEY (projectid,wikiname) REFERENCES wiki(projectid,name)
|
||||||
ON DELETE RESTRICT ON UPDATE CASCADE
|
ON DELETE RESTRICT ON UPDATE CASCADE
|
||||||
) charset=utf8 engine=InnoDB;
|
) charset=utf8 engine=InnoDB;
|
||||||
|
|
||||||
CREATE TABLE issue (
|
CREATE TABLE issue (
|
||||||
projectid VARCHAR(32) NOT NULL,
|
projectid VARCHAR(32) NOT NULL,
|
||||||
@ -92,13 +92,13 @@ CREATE TABLE issue (
|
|||||||
|
|
||||||
CONSTRAINT issue_projectid FOREIGN KEY (projectid) REFERENCES project(id)
|
CONSTRAINT issue_projectid FOREIGN KEY (projectid) REFERENCES project(id)
|
||||||
ON DELETE RESTRICT ON UPDATE CASCADE
|
ON DELETE RESTRICT ON UPDATE CASCADE
|
||||||
) charset=utf8 engine=InnoDB;
|
) charset=utf8 engine=InnoDB;
|
||||||
|
|
||||||
CREATE TABLE issue_change (
|
CREATE TABLE issue_change (
|
||||||
projectid VARCHAR(32) NOT NULL,
|
projectid VARCHAR(32) NOT NULL,
|
||||||
id BIGINT NOT NULL,
|
id BIGINT NOT NULL,
|
||||||
sno BIGINT NOT NULL,
|
sno BIGINT NOT NULL,
|
||||||
|
|
||||||
type VARCHAR(32) NOT NULL,
|
type VARCHAR(32) NOT NULL,
|
||||||
status VARCHAR(32) NOT NULL,
|
status VARCHAR(32) NOT NULL,
|
||||||
owner VARCHAR(255) NOT NULL,
|
owner VARCHAR(255) NOT NULL,
|
||||||
@ -136,7 +136,7 @@ CREATE TABLE file (
|
|||||||
|
|
||||||
CONSTRAINT file_projectid FOREIGN KEY (projectid) REFERENCES project(id)
|
CONSTRAINT file_projectid FOREIGN KEY (projectid) REFERENCES project(id)
|
||||||
ON DELETE RESTRICT ON UPDATE CASCADE
|
ON DELETE RESTRICT ON UPDATE CASCADE
|
||||||
) charset=utf8 engine=InnoDB;
|
) charset=utf8 engine=InnoDB;
|
||||||
|
|
||||||
CREATE TABLE log (
|
CREATE TABLE log (
|
||||||
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
||||||
@ -147,7 +147,7 @@ CREATE TABLE log (
|
|||||||
message TEXT NOT NULL,
|
message TEXT NOT NULL,
|
||||||
createdon DATETIME NOT NULL,
|
createdon DATETIME NOT NULL,
|
||||||
INDEX timed_project_type_action (createdon, projectid, type, action)
|
INDEX timed_project_type_action (createdon, projectid, type, action)
|
||||||
) charset=utf8 engine=InnoDB;
|
) charset=utf8 engine=InnoDB;
|
||||||
|
|
||||||
CREATE TABLE user_settings (
|
CREATE TABLE user_settings (
|
||||||
userid VARCHAR(32) PRIMARY KEY,
|
userid VARCHAR(32) PRIMARY KEY,
|
||||||
@ -162,3 +162,21 @@ CREATE TABLE user (
|
|||||||
email VARCHAR(255),
|
email VARCHAR(255),
|
||||||
enabled CHAR(1) NOT NULL DEFAULT 'N' CHECK(enabled in ('Y', 'N'))
|
enabled CHAR(1) NOT NULL DEFAULT 'N' CHECK(enabled in ('Y', 'N'))
|
||||||
) charset=utf8 engine=InnoDB;
|
) charset=utf8 engine=InnoDB;
|
||||||
|
|
||||||
|
CREATE TABLE code_review (
|
||||||
|
projectid VARCHAR(32) NOT NULL,
|
||||||
|
rev BIGINT NOT NULL,
|
||||||
|
sno BIGINT NOT NULL,
|
||||||
|
comment TEXT NOT NULL,
|
||||||
|
|
||||||
|
createdon DATETIME NOT NULL,
|
||||||
|
createdby VARCHAR(32) NOT NULL,
|
||||||
|
|
||||||
|
updatedon DATETIME NOT NULL,
|
||||||
|
updatedby VARCHAR(32) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE KEY code_review_id (projectid, rev, sno),
|
||||||
|
|
||||||
|
CONSTRAINT code_review_projectid FOREIGN KEY (projectid) REFERENCES project(id)
|
||||||
|
ON DELETE RESTRICT ON UPDATE CASCADE
|
||||||
|
) charset=utf8 engine=InnoDB;
|
||||||
|
Loading…
Reference in New Issue
Block a user