Skip to content

Commit 05f3bed

Browse files
committed
Revert "revert commit"
This reverts commit 0fb01f9.
1 parent 9bc7998 commit 05f3bed

File tree

6 files changed

+8
-44
lines changed

6 files changed

+8
-44
lines changed
File renamed without changes.

src/event-db/migrations/V4__proposal_tables.sql renamed to src/event-db/migrations/V6__proposal_tables.sql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ COMMENT ON COLUMN reviewer_level.event_id IS 'The specific Event ID this review
9999
CREATE TABLE proposal_review (
100100
row_id SERIAL PRIMARY KEY,
101101
proposal_id INTEGER NOT NULL,
102+
user_id INTEGER NOT NULL,
102103
assessor VARCHAR NOT NULL,
103104
assessor_level INTEGER,
104105

@@ -108,11 +109,12 @@ CREATE TABLE proposal_review (
108109
feasibility_note VARCHAR,
109110
auditability_rating_given INTEGER,
110111
auditability_note VARCHAR,
112+
allocated INTEGER,
111113
ranking INTEGER,
112114
flags JSONB NULL,
113115

114-
FOREIGN KEY (proposal_id) REFERENCES proposal(row_id) ON DELETE CASCADE,
115-
FOREIGN KEY (assessor_level) REFERENCES reviewer_level(row_id) ON DELETE CASCADE
116+
FOREIGN KEY (user_id) REFERENCES catalyst_user(row_id) ON DELETE SET NULL,
117+
FOREIGN KEY (proposal_id) REFERENCES proposal(row_id) ON DELETE CASCADE
116118
);
117119

118120
COMMENT ON TABLE proposal_review IS 'All Reviews.';
@@ -135,6 +137,10 @@ COMMENT ON COLUMN proposal_review.auditability_rating_given IS
135137
COMMENT ON COLUMN proposal_review.auditability_note IS
136138
'A note about the auditability rating given.';
137139

140+
COMMENT ON COLUMN proposal_review.allocated IS
141+
'Describes if the review was part of the original reviewer allocation.
142+
';
143+
138144
COMMENT ON COLUMN proposal_review.ranking IS
139145
'Numeric Measure of quality of this review according to veteran community advisors.
140146
DEPRECATED: Only used for Vit-SS compatibility.
File renamed without changes.
File renamed without changes.

src/event-db/migrations/V9__moderation_stage.sql

Lines changed: 0 additions & 42 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)