-- 재고이력 메뉴 신설 (매입 그룹의 재고 관리 다음 자리)
INSERT INTO momo_menus (objid, menu_code, menu_name, menu_url, parent_code, sort_order, group_name, is_system, is_del, regdate)
VALUES ('M_AINVH', 'A_INVH', '재고이력', '/m/admin/inventory/history', NULL, 34, '매입', 'Y', 'N', NOW())
ON CONFLICT (objid) DO UPDATE
  SET menu_name = EXCLUDED.menu_name,
      menu_url  = EXCLUDED.menu_url,
      sort_order = EXCLUDED.sort_order,
      group_name = EXCLUDED.group_name,
      is_del = 'N';
