ALTER TABLE rm_users
  ADD COLUMN IF NOT EXISTS google_sub VARCHAR(255);

CREATE UNIQUE INDEX IF NOT EXISTS idx_rm_users_google_sub
  ON rm_users(google_sub)
  WHERE google_sub IS NOT NULL;
