-- MSIN-4533 — Libellé aperçu limité (simu / preview dossards)
-- Notes : exécution UNIQUEMENT sur dev préprod ; autres env = Navicat structure + sync_static_db

INSERT INTO info (
    info_clef,
    info_langue,
    info_texte,
    info_aide,
    info_prg
)
SELECT
    src.info_clef,
    src.info_langue,
    src.info_texte,
    src.info_aide,
    'compte.php'
FROM (
    SELECT 'bib_v4_ajax_view_sample' AS info_clef, 'fr' AS info_langue,
           'Aperçu %d / %d' AS info_texte, '' AS info_aide
    UNION ALL SELECT 'bib_v4_ajax_view_sample', 'en', 'Preview %d of %d', ''
) src
WHERE NOT EXISTS (
    SELECT 1
    FROM info i
    WHERE i.info_clef = src.info_clef
      AND i.info_langue = src.info_langue
      AND i.info_prg = 'compte.php'
);
