-- Migration 014: seed missing AP programs and fix codes
-- Adds programs present in real CSV data but absent from the initial seed.

-- Fill in missing code for Narration Spéculative
UPDATE ap_programs SET code = 'NS' WHERE name = 'Narration Spéculative' AND (code IS NULL OR code = '');

-- Add missing AP programs (INSERT OR IGNORE is safe to re-run)
INSERT OR IGNORE INTO ap_programs (name, code) VALUES ('Récits et expérimentation', 'RE');
INSERT OR IGNORE INTO ap_programs (name, code) VALUES ('PACS', 'PACS');
