added the defintion of the new code_review table in codepot.mysql
This commit is contained in:
parent
d6a2a3ad31
commit
5b691e780f
@ -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