-- Extend repo_branch_protect with enhanced branch protection fields
ALTER TABLE repo_branch_protect ADD COLUMN IF NOT EXISTS required_approvals INTEGER NOT NULL DEFAULT 0;
ALTER TABLE repo_branch_protect ADD COLUMN IF NOT EXISTS dismiss_stale_reviews BOOLEAN NOT NULL DEFAULT false;
ALTER TABLE repo_branch_protect ADD COLUMN IF NOT EXISTS require_linear_history BOOLEAN NOT NULL DEFAULT false;
ALTER TABLE repo_branch_protect ADD COLUMN IF NOT EXISTS allow_fork_syncing BOOLEAN NOT NULL DEFAULT true;
