Skip to content

Commit

Permalink
Fix presence confirmations fix script (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
boavenn authored Apr 8, 2024
1 parent b9683ca commit bb0723b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ BEGIN
GROUP BY date, user_id
);

-- Drop pkey constraint for id column
ALTER TABLE presence_confirmations
DROP CONSTRAINT IF EXISTS presence_confirmations_pkey;

-- Add composite pkey
ALTER TABLE presence_confirmations
ADD CONSTRAINT pk_presence_confirmations PRIMARY KEY (date, user_id);
Expand Down

0 comments on commit bb0723b

Please sign in to comment.