104 lines
7.2 KiB
SQL
104 lines
7.2 KiB
SQL
-- MSIN-4521 — Édition participant hors inscription en ligne (fiche verte)
|
|
-- Contexte : Info compte.php + whitelist audit fiche
|
|
-- Notes : exécution UNIQUEMENT sur dev préprod ; autres env = Navicat structure + sync_static_db
|
|
|
|
SET NAMES utf8mb4;
|
|
|
|
/* --- Libellés UI --- */
|
|
DELETE FROM info
|
|
WHERE info_prg = 'compte.php'
|
|
AND info_clef IN (
|
|
'inscr_gestion_hors_tx_profile_title',
|
|
'inscr_gestion_hors_tx_prenom',
|
|
'inscr_gestion_hors_tx_nom',
|
|
'inscr_gestion_hors_tx_sexe',
|
|
'inscr_gestion_hors_tx_sexe_h',
|
|
'inscr_gestion_hors_tx_sexe_f',
|
|
'inscr_gestion_hors_tx_sexe_n',
|
|
'inscr_gestion_hors_tx_sexe_a',
|
|
'inscr_gestion_hors_tx_naissance',
|
|
'inscr_gestion_hors_tx_urgence_nom',
|
|
'inscr_gestion_hors_tx_urgence_tel',
|
|
'inscr_gestion_hors_tx_questions_title',
|
|
'inscr_gestion_hors_tx_save',
|
|
'inscr_gestion_hors_tx_cancel_title',
|
|
'inscr_gestion_hors_tx_saved',
|
|
'inscr_gestion_hors_tx_err',
|
|
'inscr_gestion_hors_tx_epreuve_ct_confirm',
|
|
'inscr_gestion_hors_tx_epreuve_no_race'
|
|
);
|
|
|
|
INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_description, info_trie, info_actif, info_option1, info_option2, info_option3, info_creation) VALUES
|
|
('inscr_gestion_hors_tx_profile_title', 'fr', 'Identité', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_profile_title', 'en', 'Identity', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_prenom', 'fr', 'Prénom', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_prenom', 'en', 'First name', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_nom', 'fr', 'Nom', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_nom', 'en', 'Last name', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe', 'fr', 'Sexe', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe', 'en', 'Gender', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe_h', 'fr', 'Homme', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe_h', 'en', 'Male', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe_f', 'fr', 'Femme', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe_f', 'en', 'Female', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe_n', 'fr', 'Non-binaire', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe_n', 'en', 'Non-binary', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe_a', 'fr', 'Autre', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_sexe_a', 'en', 'Other', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_naissance', 'fr', 'Date de naissance', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_naissance', 'en', 'Birth date', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_urgence_nom', 'fr', 'Contact urgence — nom', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_urgence_nom', 'en', 'Emergency contact — name', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_urgence_tel', 'fr', 'Contact urgence — téléphone', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_urgence_tel', 'en', 'Emergency contact — phone', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_questions_title', 'fr', 'Questions', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_questions_title', 'en', 'Questions', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_save', 'fr', 'Enregistrer', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_save', 'en', 'Save', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_cancel_title', 'fr', 'Annulation', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_cancel_title', 'en', 'Cancellation', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_saved', 'fr', 'Enregistré.', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_saved', 'en', 'Saved.', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_err', 'fr', 'Erreur d''enregistrement.', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_err', 'en', 'Save error.', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_epreuve_ct_confirm', 'fr', 'ChronoTrack est branché : le changement d''épreuve sera poussé au prochain sync. Continuer ?', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_epreuve_ct_confirm', 'en', 'ChronoTrack is linked: the distance change will be pushed on next sync. Continue?', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_epreuve_no_race', 'fr', 'Épreuve non mappée dans ChronoTrack. Mappez la race avant de changer.', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_hors_tx_epreuve_no_race', 'en', 'Distance not mapped in ChronoTrack. Map the race before changing.', '', 'compte.php', '', 0, 1, '', '', '', NOW());
|
|
|
|
/* --- Audit whitelist (détail old→new) — actif par défaut --- */
|
|
INSERT INTO `inscriptions_fiche_audit_fields`
|
|
(`field_key`, `field_label_fr`, `field_label_en`, `field_actif`, `field_tri`)
|
|
SELECT 'par_prenom', 'Prénom', 'First name', 1, 50
|
|
WHERE NOT EXISTS (SELECT 1 FROM `inscriptions_fiche_audit_fields` WHERE `field_key` = 'par_prenom');
|
|
|
|
INSERT INTO `inscriptions_fiche_audit_fields`
|
|
(`field_key`, `field_label_fr`, `field_label_en`, `field_actif`, `field_tri`)
|
|
SELECT 'par_nom', 'Nom', 'Last name', 1, 60
|
|
WHERE NOT EXISTS (SELECT 1 FROM `inscriptions_fiche_audit_fields` WHERE `field_key` = 'par_nom');
|
|
|
|
INSERT INTO `inscriptions_fiche_audit_fields`
|
|
(`field_key`, `field_label_fr`, `field_label_en`, `field_actif`, `field_tri`)
|
|
SELECT 'par_sexe', 'Sexe', 'Gender', 1, 70
|
|
WHERE NOT EXISTS (SELECT 1 FROM `inscriptions_fiche_audit_fields` WHERE `field_key` = 'par_sexe');
|
|
|
|
INSERT INTO `inscriptions_fiche_audit_fields`
|
|
(`field_key`, `field_label_fr`, `field_label_en`, `field_actif`, `field_tri`)
|
|
SELECT 'par_naissance', 'Date de naissance', 'Birth date', 1, 80
|
|
WHERE NOT EXISTS (SELECT 1 FROM `inscriptions_fiche_audit_fields` WHERE `field_key` = 'par_naissance');
|
|
|
|
INSERT INTO `inscriptions_fiche_audit_fields`
|
|
(`field_key`, `field_label_fr`, `field_label_en`, `field_actif`, `field_tri`)
|
|
SELECT 'epr_id', 'Épreuve', 'Race / distance', 1, 90
|
|
WHERE NOT EXISTS (SELECT 1 FROM `inscriptions_fiche_audit_fields` WHERE `field_key` = 'epr_id');
|
|
|
|
INSERT INTO `inscriptions_fiche_audit_fields`
|
|
(`field_key`, `field_label_fr`, `field_label_en`, `field_actif`, `field_tri`)
|
|
SELECT 'par_contact_urgence_nom', 'Contact urgence — nom', 'Emergency contact — name', 1, 100
|
|
WHERE NOT EXISTS (SELECT 1 FROM `inscriptions_fiche_audit_fields` WHERE `field_key` = 'par_contact_urgence_nom');
|
|
|
|
INSERT INTO `inscriptions_fiche_audit_fields`
|
|
(`field_key`, `field_label_fr`, `field_label_en`, `field_actif`, `field_tri`)
|
|
SELECT 'par_contact_urgence_telephone', 'Contact urgence — téléphone', 'Emergency contact — phone', 1, 110
|
|
WHERE NOT EXISTS (SELECT 1 FROM `inscriptions_fiche_audit_fields` WHERE `field_key` = 'par_contact_urgence_telephone');
|