Skip to content

Commit

Permalink
chore: indent
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Nov 13, 2023
1 parent c0e01dd commit 75d9d43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions migrations/1695631804_add-unique-device-tokens.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DELETE FROM public.clients
WHERE (device_token, created_at) NOT IN (
SELECT device_token, MAX(created_at)
FROM public.clients
GROUP BY device_token
);
WHERE (device_token, created_at) NOT IN (
SELECT device_token, MAX(created_at)
FROM public.clients
GROUP BY device_token
);

ALTER TABLE public.clients
ADD CONSTRAINT device_token_unique UNIQUE (device_token);

0 comments on commit 75d9d43

Please sign in to comment.