-- Migration: Add code_verifier column to auth_state table
-- Date: 2025-11-19
-- ADR: ADR-019 IndieAuth PKCE Authentication

-- Add code_verifier column for PKCE implementation
ALTER TABLE auth_state ADD COLUMN code_verifier TEXT NOT NULL DEFAULT '';

-- Note: The DEFAULT '' allows this migration to be backward compatible with existing rows
-- Future inserts will require an actual code_verifier value
