-- 푸시알림 발송이력 사이드바 메뉴 등록 (멱등)
-- 운영 DB 에서 1회 실행: psql … -f 2026-05-30-notice-history-menu.sql
INSERT INTO menu_info (objid, menu_type, parent_obj_id, menu_name_kor, menu_url, seq, status, regdate, writer, system_name)
SELECT 9000298, 2, 9000200, '푸시알림 발송이력', '/m/admin/notice-history', 21, 'active', NOW(), 'admin', 'PMS'
WHERE NOT EXISTS (SELECT 1 FROM menu_info WHERE objid = 9000298);
