Skip to content

Commit 8ce304f

Browse files
authored
Merge pull request #723 from hmcts/defect/pdda-594
PDDA-594 Adding unique constraint to xhb_hearing to prevent duplicate…
2 parents 177d4b0 + 899cc51 commit 8ce304f

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_hearing
2+
DROP CONSTRAINT IF EXISTS hearing_unique;
3+
4+
ALTER TABLE xhb_hearing
5+
ADD CONSTRAINT hearing_unique
6+
UNIQUE (court_id, case_id, ref_hearing_type_id, hearing_start_date);

0 commit comments

Comments
 (0)