-- ============================================================================
-- Live-path fix #5b: per-paper section blueprint config.
--
-- Stores a JSON map keyed by question type, e.g.
--   {"theory":{"choose":4},"mcq":{"instruction":"Shade the correct circle."}}
-- consumed by pdf_builder.buildPDFSections() via export_pdf.php.
-- Idempotent (ADD COLUMN IF NOT EXISTS — MariaDB-safe).
-- ============================================================================

ALTER TABLE `exam_papers`
  ADD COLUMN IF NOT EXISTS `section_config` TEXT DEFAULT NULL;
