-
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.
Katrina feedback: more informative error message
- Loading branch information
Showing
4 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
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 | ||
-- which corresponds to a unique benchmark / para combo | ||
ALTER TABLE task | ||
ADD CONSTRAINT UC_Task UNIQUE (subgoal_id, assignee_id); | ||
ADD CONSTRAINT subgoal_assignee_unique UNIQUE (subgoal_id, assignee_id); | ||
|
||
-- Add index to allow easy queries of tasks by assignee | ||
CREATE INDEX idx_task_assignee ON task(assignee_id); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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