Commit 82191c55 authored by Valentin Suhnjov's avatar Valentin Suhnjov

RIHAKB-206. Add approval type column

parent accae382
......@@ -326,6 +326,7 @@ CREATE TABLE riha.comment
organization_name VARCHAR(255),
organization_code VARCHAR(50),
status VARCHAR(150),
type VARCHAR(150),
CONSTRAINT pk_comment PRIMARY KEY (comment_id),
CONSTRAINT fk_comment_comment FOREIGN KEY (comment_parent_id)
REFERENCES riha.comment (comment_id) MATCH SIMPLE
......@@ -348,6 +349,7 @@ COMMENT ON COLUMN riha.comment.author_personal_code IS 'Hinnangu/kommentaari kas
COMMENT ON COLUMN riha.comment.organization_name IS 'Hinnangu/kommentaari kasutaja asutuse numetus';
COMMENT ON COLUMN riha.comment.organization_code IS 'Hinnangu/kommentaari kasutaja asutuse kood';
COMMENT ON COLUMN riha.comment.status IS 'Hinnangu staatus';
COMMENT ON COLUMN riha.comment.type IS 'Hinnangu tüüp';
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE riha.comment TO riha;
......
......@@ -19,6 +19,7 @@ ALTER TABLE riha.comment ADD author_personal_code VARCHAR(11) NULL;
ALTER TABLE riha.comment ADD organization_name VARCHAR(255) NULL;
ALTER TABLE riha.comment ADD organization_code VARCHAR(50) NULL;
ALTER TABLE riha.comment ADD status VARCHAR(150) NULL;
ALTER TABLE riha.comment ADD type VARCHAR(150) NULL;
ALTER TABLE riha.comment ADD title VARCHAR(255) NULL;
-- Remove limit from comment
......
......@@ -67,6 +67,8 @@ public class Comment implements BaseModel {
@Column(name = "status")
private String status;
@Column(name = "type")
private String type;
/*
* (non-Javadoc)
*
......@@ -331,4 +333,11 @@ public class Comment implements BaseModel {
this.status = status;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment