-- +goose Up
-- Username uniqueness is now enforced in the backend for contact flows,
-- so keep a regular index for lookups instead of a unique constraint.

DROP INDEX IF EXISTS idx_users_username ON users;

CREATE INDEX idx_users_username
  ON users (username);

-- +goose Down
DROP INDEX IF EXISTS idx_users_username ON users;

CREATE UNIQUE INDEX idx_users_username
  ON users (username);
iya