-- =====================================================
-- UPGRADE SQL — CMS Sekolahku v3.0.2 → v3.1.0
-- Jalankan file ini sekali saja untuk update database
-- =====================================================

-- 1. Normalisasi format kategori: hapus spasi setelah koma
-- Agar FIND_IN_SET() bekerja dengan benar
UPDATE `news` SET `category` = REPLACE(`category`, ', ', ',') WHERE `category` LIKE '%, %';
