Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Sep 8, 2022
1 parent 631c8a7 commit eb10295
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ ALTER TABLE receipts_graph ADD COLUMN thread_id TEXT;

-- Rebuild the unique constraint with the thread_id.
ALTER TABLE receipts_linearized
DROP CONSTRAINT IF EXISTS receipts_linearized_uniqueness;
ALTER TABLE receipts_linearized
ADD CONSTRAINT receipts_linearized_uniqueness
ADD CONSTRAINT receipts_linearized_uniqueness_thread
UNIQUE (room_id, receipt_type, user_id, thread_id);

ALTER TABLE receipts_graph
DROP CONSTRAINT IF EXISTS receipts_graph_uniqueness;
ALTER TABLE receipts_graph
ADD CONSTRAINT receipts_graph_uniqueness
ADD CONSTRAINT receipts_graph_uniqueness_thread
UNIQUE (room_id, receipt_type, user_id, thread_id);

0 comments on commit eb10295

Please sign in to comment.