Skip to content

Commit 1084b65

Browse files
authored
Merge pull request #724 from hmcts/defect/pdda-594
PDDA-594 Adding constraint on xhb_sitting to prevent duplicates
2 parents 8ce304f + 17ac41e commit 1084b65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ALTER TABLE xhb_sitting
2+
DROP CONSTRAINT IF EXISTS sitting_unique;
3+
4+
ALTER TABLE xhb_sitting
5+
ADD CONSTRAINT sitting_unique
6+
UNIQUE (sitting_time, court_room_id, court_site_id);

0 commit comments

Comments
 (0)