Skip to content

Commit 17ac41e

Browse files
committed
PDDA-594 Adding constraint on xhb_sitting to prevent duplicates
1 parent 8ce304f commit 17ac41e

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)