Skip to content

Commit bb0723b

Browse files
authored
Fix presence confirmations fix script (#243)
1 parent b9683ca commit bb0723b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/resources/scripts/V3_4_0_1__fix_presence_confirmations.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ BEGIN
1414
GROUP BY date, user_id
1515
);
1616

17+
-- Drop pkey constraint for id column
18+
ALTER TABLE presence_confirmations
19+
DROP CONSTRAINT IF EXISTS presence_confirmations_pkey;
20+
1721
-- Add composite pkey
1822
ALTER TABLE presence_confirmations
1923
ADD CONSTRAINT pk_presence_confirmations PRIMARY KEY (date, user_id);

0 commit comments

Comments
 (0)