DO $$
BEGIN
  IF NOT EXISTS (
    SELECT 1 FROM information_schema.columns
    WHERE table_schema = 'public'
      AND table_name = 'refresh_tokens'
      AND column_name = 'token_fingerprint'
  ) THEN
    RAISE EXCEPTION 'refresh_tokens.token_fingerprint missing';
  END IF;
END $$;

