-- Add navigation introduced after the original managed-menu seed.
--
-- This is deliberately a forward-only seed: existing menu rows and operator
-- changes are preserved. The topics link is inserted only when that URL is
-- not already present in the primary menu.

INSERT INTO menu_items (menu_key, label, translation_key, url, audience, locales, is_enabled, opens_new_tab, sort_order, created_at, updated_at)
SELECT 'primary', NULL, 'topics.nav', '/d', 'any', '', 1, 0, 35, NOW(), NOW()
WHERE NOT EXISTS (
    SELECT 1 FROM menu_items
    WHERE menu_key = 'primary' AND url = '/d'
);
