-- AppView database schema 0007: drop unused `profiles_handle_idx`.
--
-- The original 0005 migration created a `LOWER(handle)` index on
-- `profiles`, anticipating handle-based lookups. In practice every
-- caller derives a DID first (via `posts.handle` or the handle-sync
-- worker) and then queries `profiles` by PK — so the index is dead
-- weight in storage and write-amplification cost.
--
-- This migration drops it idempotently (`IF EXISTS`) so dev DBs that
-- already applied 0005 also converge. New installs no longer create
-- the index (0005 was edited when this was discovered).
DROP INDEX IF EXISTS profiles_handle_idx;
