-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
364 ticket, changed subgoal to benchmark (#381)
* changed subgoal to benchmark * fixed errors * remove unnecessary commas differing with main, run prettier * run prettier, check tests all passing * replace 'subgoal' with 'benchmark' in remaining files which did not cause conflict on merge, correct variable name in iep test from incorrect replacement in merge --------- Co-authored-by: Connor Wales <connorwales@gmail.com> Co-authored-by: KCCPMG <39074889+KCCPMG@users.noreply.github.com> Co-authored-by: Katrina Connors <32425204+katconnors@users.noreply.github.com>
- Loading branch information
1 parent
41f0d6c
commit 406cf35
Showing
19 changed files
with
1,061 additions
and
1,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/backend/db/migrations/2_add-uniqueness-constraint-on-tasks.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- Each task should have a unique subgoal_id - assignee_id combination | ||
-- Each task should have a unique benchmark_id - assignee_id combination | ||
-- which corresponds to a unique benchmark / para combo | ||
ALTER TABLE task | ||
ADD CONSTRAINT subgoal_assignee_unique UNIQUE (subgoal_id, assignee_id); | ||
ADD CONSTRAINT benchmark_assignee_unique UNIQUE (benchmark_id, assignee_id); | ||
|
||
-- Add index to allow easy queries of tasks by assignee | ||
CREATE INDEX idx_task_assignee ON task(assignee_id); |
Oops, something went wrong.