tasq/supabase/migrations/20260224120000_remove_fcm_unique_index.sql
Marc Rejohn Castillano 5979a04254 * Push Notification Setup and attempt
* Office Ordering
* Allow editing of Task and Ticket Details after creation
2026-02-24 21:06:46 +08:00

8 lines
394 B
SQL

-- drop unique index to allow multiple entries (e.g. same token across
-- device logins) for a single user. the application already keeps tokens
-- tidy by unregistering on sign-out, so duplicates are harmless.
drop index if exists fcm_tokens_user_token_idx;
-- maintain a regular index on user_id for performance
create index if not exists fcm_tokens_user_idx on public.fcm_tokens(user_id);