33 lines
1.1 KiB
SQL
33 lines
1.1 KiB
SQL
-- MSIN-4515 — Champs production dossard : Pays (nom complet) + Pays (code ISO-2)
|
|
-- Prérequis : MSIN-4515-production-champs-imprimeur.sql
|
|
-- Notes : exécution UNIQUEMENT sur dev préprod ; autres env = Navicat structure + sync_static_db
|
|
-- (ici : données info seulement → sync outil après)
|
|
|
|
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_v5_production_field_pay_nom' AS info_clef, 'fr' AS info_langue,
|
|
'Pays (nom complet)' AS info_texte, '' AS info_aide
|
|
UNION ALL SELECT 'bib_v5_production_field_pay_nom', 'en', 'Country (full name)', ''
|
|
UNION ALL SELECT 'bib_v5_production_field_pay_iso', 'fr', 'Pays (code 2 lettres)', ''
|
|
UNION ALL SELECT 'bib_v5_production_field_pay_iso', 'en', 'Country (2-letter code)', ''
|
|
) src
|
|
WHERE NOT EXISTS (
|
|
SELECT 1
|
|
FROM info current_info
|
|
WHERE current_info.info_clef = src.info_clef
|
|
AND current_info.info_langue = src.info_langue
|
|
AND current_info.info_prg = 'compte.php'
|
|
);
|