Line 7... |
Line 7... |
7 |
# Variables
|
7 |
# Variables
|
8 |
SET @idm = 795;# Identifiant pour les métadonnées
|
8 |
SET @idm = 795;# Identifiant pour les métadonnées
|
9 |
SET @idm_max = 99999;# Identifiant pour les métadonnées maximum si déjà des données dans la base
|
9 |
SET @idm_max = 99999;# Identifiant pour les métadonnées maximum si déjà des données dans la base
|
10 |
#---------------------------------------------------------------------------------------------------------------------#
|
10 |
#---------------------------------------------------------------------------------------------------------------------#
|
11 |
# Nettoyage des tables
|
11 |
# Nettoyage des tables
|
12 |
# coel_projet : la table d''historique des lignes
|
12 |
# coel_projet
|
13 |
DELETE FROM tb_coel.coel_projet WHERE cpr_id_projet IN (2,3);
|
13 |
DELETE FROM tb_coel.coel_projet WHERE cpr_id_projet IN (2,3);
|
- |
|
14 |
# coel_projet_version
|
- |
|
15 |
DELETE FROM tb_coel.coel_projet_version WHERE cprv_id_version IN (1,2);
|
14 |
# coel_meta_historique_ligne : la table d''historique des lignes
|
16 |
# coel_meta_historique_ligne
|
15 |
DELETE FROM tb_coel.coel_meta_historique_ligne WHERE cmhl_id_historique_ligne >= @idm AND cmhl_id_historique_ligne < @idm_max;
|
17 |
DELETE FROM tb_coel.coel_meta_historique_ligne WHERE cmhl_id_historique_ligne >= @idm AND cmhl_id_historique_ligne < @idm_max;
|
16 |
# coel_structure : la table contenant les structures
|
18 |
# coel_structure : la table contenant les structures
|
17 |
DELETE FROM tb_coel.coel_structure WHERE cs_id_structure IN (SELECT ID_ORG FROM tb_herbiers.HERBIERS_ORGANISATION ORDER BY ID_ORG ASC);
|
19 |
DELETE FROM tb_coel.coel_structure WHERE cs_id_structure IN (SELECT ID_ORG FROM tb_herbiers.HERBIERS_ORGANISATION ORDER BY ID_ORG ASC);
|
18 |
# coel_structure_a_personne
|
20 |
# coel_structure_a_personne
|
19 |
DELETE FROM tb_coel.coel_structure_a_personne WHERE csap_id_role IN ('2026', '2027');
|
21 |
DELETE FROM tb_coel.coel_structure_a_personne WHERE csap_id_role IN ('2026', '2027');
|
Line 22... |
Line 24... |
22 |
# coel_personne_a_relation
|
24 |
# coel_personne_a_relation
|
23 |
DELETE FROM tb_coel.coel_personne_a_relation WHERE cpar_id_projet = '2';
|
25 |
DELETE FROM tb_coel.coel_personne_a_relation WHERE cpar_id_projet = '2';
|
24 |
# coel_collection_botanique
|
26 |
# coel_collection_botanique
|
25 |
DELETE FROM tb_coel.coel_collection_botanique WHERE ccb_id_collection IN (SELECT cc_id_collection FROM tb_coel.coel_collection WHERE cc_ce_projet IN ('2'));
|
27 |
DELETE FROM tb_coel.coel_collection_botanique WHERE ccb_id_collection IN (SELECT cc_id_collection FROM tb_coel.coel_collection WHERE cc_ce_projet IN ('2'));
|
26 |
# coel_collection_a_commentaire
|
28 |
# coel_collection_a_commentaire
|
27 |
DELETE FROM tb_coel.coel_collection_a_commentaire WHERE ccac_id_collection IN (SELECT cc_id_collection FROM tb_coel.coel_collection WHERE cc_ce_projet IN ('2'));
|
29 |
DELETE FROM tb_coel.coel_collection_a_commentaire ;
|
28 |
# coel_collection
|
30 |
# coel_collection
|
29 |
DELETE FROM tb_coel.coel_collection WHERE cc_ce_projet IN ('2');
|
31 |
DELETE FROM tb_coel.coel_collection WHERE cc_ce_projet IN ('2');
|
30 |
# coel_commentaire
|
32 |
# coel_commentaire
|
31 |
DELETE FROM tb_coel.coel_commentaire WHERE ccm_ce_projet IN ('2');
|
33 |
DELETE FROM tb_coel.coel_commentaire WHERE ccm_ce_projet IN ('2');
|
Line 255... |
Line 257... |
255 |
|
257 |
|
Line 256... |
Line 258... |
256 |
ALTER TABLE tb_coel.coel_personne ORDER BY cp_id_personne;
|
258 |
ALTER TABLE tb_coel.coel_personne ORDER BY cp_id_personne;
|
257 |
|
259 |
|
- |
|
260 |
#------------------------------------------------------------------------------------------------------------------------
|
258 |
#------------------------------------------------------------------------------------------------------------------------
|
261 |
# HERBIERS_ont_un_staff vers coel_structure_a_personne
|
259 |
# HERBIERS_ont_un_staff vers coel_structure_a_personne
|
262 |
# ATTENTION : Nous ignorons les liaisons qui n ont pas de correspondance dans la table HERBIER_STAFF
|
260 |
INSERT INTO tb_coel.coel_structure_a_personne
|
263 |
INSERT INTO tb_coel.coel_structure_a_personne
|
261 |
(csap_id_structure, csap_id_personne, csap_id_role, csap_mark_contact, csap_ce_truk_fonction, csap_ce_meta)
|
264 |
(csap_id_structure, csap_id_personne, csap_id_role, csap_mark_contact, csap_ce_truk_fonction, csap_ce_meta)
|
262 |
SELECT ID_ORG, 100000+hous.ID_STAFF, '2027', IF(LOWER(CONTACT) = 'oui', 1, 0) AS CONTACT, IF(FONCTION != '', CONCAT('AUTRE##', CONVERT(FONCTION USING utf8)), NULL) AS FONCTION, @idm := @idm+1
|
265 |
SELECT ID_ORG, 100000+hous.ID_STAFF, '2027', IF(LOWER(CONTACT) = 'oui', 1, 0) AS CONTACT, IF(FONCTION != '', CONCAT('AUTRE##', CONVERT(FONCTION USING utf8)), NULL) AS FONCTION, @idm := @idm+1
|
263 |
FROM tb_herbiers.HERBIERS_ont_un_staff AS hous LEFT JOIN tb_herbiers.HERBIERS_STAFF AS hs ON (hous.ID_STAFF = hs.ID_STAFF)
|
266 |
FROM tb_herbiers.HERBIERS_STAFF AS hs LEFT JOIN tb_herbiers.HERBIERS_ont_un_staff AS hous ON (hous.ID_STAFF = hs.ID_STAFF)
|
264 |
WHERE hous.ID_ORG != 0
|
267 |
WHERE hous.ID_ORG != 0
|
265 |
ORDER BY hous.ID_ORG, hous.ID_STAFF ASC;
|
268 |
ORDER BY hous.ID_ORG, hous.ID_STAFF ASC;
|
266 |
INSERT INTO tb_coel.coel_meta_historique_ligne
|
269 |
INSERT INTO tb_coel.coel_meta_historique_ligne
|
267 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
|
270 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
|
268 |
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
|
271 |
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
|
269 |
SELECT @idm_tmp := @idm_tmp+1, '120', CONCAT(ID_ORG, '-', 100000+ID_STAFF, '-2027'), NULL,
|
272 |
SELECT @idm_tmp := @idm_tmp+1, '120', CONCAT(ID_ORG, '-', 100000+hous.ID_STAFF, '-2027'), NULL,
|
270 |
NOW(), CONCAT('Importation de la personne #',100000+ID_STAFF,' de la structure #', ID_ORG,' de la table HERBIERS_ont_un_staff.'), '1', '1', '162.38.234.1'
|
273 |
NOW(), CONCAT('Importation de la personne #',100000+hous.ID_STAFF,' de la structure #', ID_ORG,' de la table HERBIERS_ont_un_staff.'), '1', '1', '162.38.234.1'
|
271 |
FROM tb_herbiers.HERBIERS_ont_un_staff
|
274 |
FROM tb_herbiers.HERBIERS_STAFF AS hs LEFT JOIN tb_herbiers.HERBIERS_ont_un_staff AS hous ON (hous.ID_STAFF = hs.ID_STAFF)
|
Line 272... |
Line 275... |
272 |
WHERE ID_ORG != 0
|
275 |
WHERE hous.ID_ORG != 0
|
273 |
ORDER BY ID_ORG, ID_STAFF ASC;
|
276 |
ORDER BY hous.ID_ORG, hous.ID_STAFF ASC;
|
274 |
|
277 |
|
275 |
UPDATE tb_coel.coel_structure_a_personne
|
278 |
UPDATE tb_coel.coel_structure_a_personne
|
Line 276... |
Line -... |
276 |
SET csap_ce_truk_fonction = IF(csap_ce_truk_fonction IS NOT NULL, IF(csap_ce_truk_fonction LIKE '%irecteur%', '2028',
|
- |
|
277 |
IF(csap_ce_truk_fonction LIKE '%onservateur%', '2029', IF(csap_ce_truk_fonction LIKE '%echnicien%', '2030', csap_ce_truk_fonction))), NULL)
|
279 |
SET csap_ce_truk_fonction = IF(csap_ce_truk_fonction IS NOT NULL, IF(csap_ce_truk_fonction LIKE '%irecteur%', '2028',
|
278 |
WHERE csap_id_role = '2027' ;
|
280 |
IF(csap_ce_truk_fonction LIKE '%onservateur%', '2029', IF(csap_ce_truk_fonction LIKE '%echnicien%', '2030', csap_ce_truk_fonction))), NULL)
|
279 |
|
281 |
WHERE csap_id_role = '2027' ;
|
280 |
|
282 |
|
281 |
#------------------------------------------------------------------------------------------------------------------------
|
283 |
#------------------------------------------------------------------------------------------------------------------------
|
Line 348... |
Line 350... |
348 |
ORDER BY ID_INDIC ASC;
|
350 |
ORDER BY ID_INDIC ASC;
|
349 |
INSERT INTO tb_coel.coel_meta_historique_ligne
|
351 |
INSERT INTO tb_coel.coel_meta_historique_ligne
|
350 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
|
352 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
|
351 |
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
|
353 |
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
|
352 |
SELECT @idm_tmp := @idm_tmp+1, '107', hi.ID_INDIC, NULL,
|
354 |
SELECT @idm_tmp := @idm_tmp+1, '107', hi.ID_INDIC, NULL,
|
353 |
FROM_UNIXTIME(MAJ_INDIC) , CONCAT('Ajout du commentaire #',hi.ID_INDIC,' de la table HERBIER_INDIC.'), IF(ID_INDICATEUR != '0', ID_INDICATEUR, '1'), '1', IF(ID_INDICATEUR != '0', NULL, '162.38.234.1')
|
355 |
FROM_UNIXTIME(MAX(MAJ_INDIC)) , CONCAT('Ajout du commentaire #',hi.ID_INDIC,' de la table HERBIER_INDIC.'), IF(ID_INDICATEUR != '0', ID_INDICATEUR, '1'), '1', IF(ID_INDICATEUR != '0', NULL, '162.38.234.1')
|
354 |
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_INDIC_HISTORIQUE AS hih ON (hi.ID_INDIC = hih.ID_INDIC)
|
356 |
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_INDIC_HISTORIQUE AS hih ON (hi.ID_INDIC = hih.ID_INDIC)
|
- |
|
357 |
GROUP BY hi.ID_INDIC
|
355 |
ORDER BY hi.ID_INDIC ASC;
|
358 |
ORDER BY hi.ID_INDIC ASC;
|
Line 356... |
Line 359... |
356 |
|
359 |
|
357 |
#------------------------------------------------------------------------------------------------------------------------
|
360 |
#------------------------------------------------------------------------------------------------------------------------
|
358 |
# HERBIERS_A_UN_TYPE vers coel_collection_a_commentaire
|
361 |
# HERBIERS_A_UN_TYPE vers coel_collection_a_commentaire
|
Line 365... |
Line 368... |
365 |
@idm := @idm+1
|
368 |
@idm := @idm+1
|
366 |
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_A_UN_TYPE AS haut ON (hi.ID_INDIC = haut.ID_INDIC)
|
369 |
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_A_UN_TYPE AS haut ON (hi.ID_INDIC = haut.ID_INDIC)
|
367 |
WHERE ID IN (SELECT ccm_id_commentaire FROM tb_coel.coel_commentaire)
|
370 |
WHERE ID IN (SELECT ccm_id_commentaire FROM tb_coel.coel_commentaire)
|
368 |
GROUP BY hi.ID_INDIC
|
371 |
GROUP BY hi.ID_INDIC
|
369 |
ORDER BY hi.ID_INDIC ASC;
|
372 |
ORDER BY hi.ID_INDIC ASC;
|
- |
|
373 |
# ATTENTION : ajoute moins de valeurs à @
|
370 |
INSERT INTO tb_coel.coel_meta_historique_ligne
|
374 |
INSERT INTO tb_coel.coel_meta_historique_ligne
|
371 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
|
375 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement,
|
372 |
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
|
376 |
cmhl_date_modification, cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat, cmhl_ip)
|
373 |
SELECT @idm_tmp := @idm_tmp+1, '102', hi.ID_INDIC, NULL,
|
377 |
SELECT @idm_tmp := @idm_tmp+1, '102', CONCAT(hi.ID_INDIC,'-',ID), NULL,
|
374 |
FROM_UNIXTIME(MAJ_INDIC) , CONCAT('Ajout des types du commentaire #',hi.ID_INDIC,' de la table HERBIERS_A_UN_TYPE.'), IF(ID_INDICATEUR != '0', ID_INDICATEUR, '1'), '1', IF(ID_INDICATEUR != '0', NULL, '162.38.234.1')
|
378 |
FROM_UNIXTIME(MAX(MAJ_INDIC)) , CONCAT('Ajout des types du commentaire #',hi.ID_INDIC,' de la table HERBIERS_A_UN_TYPE.'), IF(ID_INDICATEUR != '0', ID_INDICATEUR, '1'), '1', IF(ID_INDICATEUR != '0', NULL, '162.38.234.1')
|
375 |
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_A_UN_TYPE AS haut ON (hi.ID_INDIC = haut.ID_INDIC) LEFT JOIN tb_herbiers.HERBIERS_INDIC_HISTORIQUE AS hih ON (hi.ID_INDIC = hih.ID_INDIC)
|
379 |
FROM tb_herbiers.HERBIERS_INDIC AS hi LEFT JOIN tb_herbiers.HERBIERS_A_UN_TYPE AS haut ON (hi.ID_INDIC = haut.ID_INDIC) LEFT JOIN tb_herbiers.HERBIERS_INDIC_HISTORIQUE AS hih ON (hi.ID_INDIC = hih.ID_INDIC)
|
376 |
WHERE ID IN (SELECT ccm_id_commentaire FROM tb_coel.coel_commentaire)
|
380 |
WHERE ID IN (SELECT ccm_id_commentaire FROM tb_coel.coel_commentaire)
|
377 |
GROUP BY hi.ID_INDIC
|
381 |
GROUP BY hi.ID_INDIC
|
378 |
ORDER BY hi.ID_INDIC ASC;
|
382 |
ORDER BY hi.ID_INDIC ASC;
|
Line 379... |
Line -... |
379 |
|
- |
|
380 |
#------------------------------------------------------------------------------------------------------------------------
|
383 |
|
381 |
# Mise à jour des id de personne inexistant dans l''annuaire Tela
|
- |
|
382 |
# dans la table : coel_meta_historique_ligne
|
- |
|
383 |
INSERT IGNORE INTO tb_coel.coel_personne
|
- |
|
384 |
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom,
|
- |
|
385 |
cp_description, cp_ce_annuaire_tela,
|
- |
|
386 |
cp_ce_meta)
|
- |
|
387 |
SELECT DISTINCT cmhl_ce_modifier_par, '3', CONCAT('Inconnu #', cmhl_ce_modifier_par) AS NOM_COMPLET, 'Inconnu', 'INCONNU',
|
- |
|
388 |
'Individu non présent dans l''annuaire Tela Botanica.', cmhl_ce_modifier_par,
|
- |
|
389 |
@idm := @idm+1
|
- |
|
390 |
FROM tb_coel.coel_meta_historique_ligne
|
- |
|
391 |
WHERE cmhl_ce_modifier_par NOT IN (SELECT U_ID FROM tb_v4.annuaire_tela)
|
- |
|
392 |
ORDER BY cmhl_ce_modifier_par ASC;
|
- |
|
393 |
INSERT IGNORE INTO tb_coel.coel_meta_historique_ligne
|
- |
|
394 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
|
- |
|
395 |
cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
|
- |
|
396 |
SELECT DISTINCT @idm_tmp := @idm_tmp+1, '113', cmhl_ce_modifier_par, NULL, NOW(),
|
- |
|
397 |
CONCAT('Création de l''utilisateur inconnu #', cmhl_ce_modifier_par,' non présent la table annuaire_tela.'), '1', '1', '162.38.234.1'
|
- |
|
398 |
FROM tb_coel.coel_meta_historique_ligne
|
- |
|
399 |
WHERE cmhl_ce_modifier_par NOT IN (SELECT U_ID FROM tb_v4.annuaire_tela)
|
- |
|
400 |
ORDER BY cmhl_ce_modifier_par ASC;
|
- |
|
401 |
# dans la table : coel_structure_a_personne
|
- |
|
402 |
INSERT IGNORE INTO tb_coel.coel_personne
|
- |
|
403 |
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom,
|
384 |
# Mise à jour des id de personne inexistant dans l''annuaire Tela dans la table : coel_meta_historique_ligne
|
404 |
cp_description, cp_ce_annuaire_tela,
|
- |
|
405 |
cp_ce_meta)
|
- |
|
406 |
SELECT DISTINCT csap_id_personne, '3', CONCAT('Inconnu #', csap_id_personne) AS NOM_COMPLET, 'Inconnu', 'INCONNU',
|
- |
|
407 |
'Individu non présent dans l''annuaire Tela Botanica.', csap_id_personne,
|
- |
|
408 |
@idm := @idm+1
|
- |
|
409 |
FROM tb_coel.coel_structure_a_personne
|
- |
|
410 |
WHERE csap_id_personne NOT IN (SELECT U_ID FROM tb_v4.annuaire_tela)
|
- |
|
411 |
ORDER BY csap_id_personne ASC;
|
- |
|
412 |
INSERT IGNORE INTO tb_coel.coel_meta_historique_ligne
|
- |
|
413 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
|
- |
|
414 |
cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
|
- |
|
415 |
SELECT DISTINCT @idm_tmp := @idm_tmp+1, '113', csap_id_personne, NULL, NOW(),
|
- |
|
416 |
CONCAT('Création de l''utilisateur inconnu #', csap_id_personne,' non présent la table annuaire_tela.'), '1', '1', '162.38.234.1'
|
- |
|
417 |
FROM tb_coel.coel_structure_a_personne
|
- |
|
418 |
WHERE csap_id_personne NOT IN (SELECT U_ID FROM tb_v4.annuaire_tela)
|
- |
|
419 |
ORDER BY csap_id_personne ASC;
|
- |
|
420 |
# dans la table : coel_personne_a_relation
|
385 |
# Récupération manuelle...
|
421 |
INSERT IGNORE INTO tb_coel.coel_personne
|
386 |
INSERT INTO tb_coel.coel_personne
|
422 |
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom,
|
- |
|
423 |
cp_description, cp_ce_annuaire_tela,
|
- |
|
424 |
cp_ce_meta)
|
- |
|
425 |
SELECT DISTINCT cpar_id_personne_01, '3', CONCAT('Inconnu #', cpar_id_personne_01) AS NOM_COMPLET, 'Inconnu', 'INCONNU',
|
387 |
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom, cp_description, cp_ce_annuaire_tela, cp_ce_meta)
|
426 |
'Individu non présent dans l''annuaire Tela Botanica.', cpar_id_personne_01,
|
- |
|
427 |
@idm := @idm+1
|
- |
|
428 |
FROM tb_coel.coel_personne_a_relation
|
- |
|
429 |
WHERE cpar_id_personne_01 NOT IN (SELECT U_ID FROM tb_v4.annuaire_tela)
|
- |
|
430 |
ORDER BY cpar_id_personne_01 ASC;
|
- |
|
431 |
INSERT IGNORE INTO tb_coel.coel_meta_historique_ligne
|
- |
|
432 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
|
- |
|
433 |
cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
|
- |
|
434 |
SELECT DISTINCT @idm_tmp := @idm_tmp+1, '113', cpar_id_personne_01, NULL, NOW(),
|
- |
|
435 |
CONCAT('Création de l''utilisateur inconnu #', cpar_id_personne_01,' non présent la table annuaire_tela.'), '1', '1', '162.38.234.1'
|
- |
|
436 |
FROM tb_coel.coel_personne_a_relation
|
- |
|
437 |
WHERE cpar_id_personne_01 NOT IN (SELECT U_ID FROM tb_v4.annuaire_tela)
|
- |
|
438 |
ORDER BY cpar_id_personne_01 ASC;
|
- |
|
439 |
INSERT IGNORE INTO tb_coel.coel_personne
|
- |
|
440 |
(cp_id_personne, cp_ce_projet, cp_fmt_nom_complet, cp_prenom, cp_nom,
|
- |
|
441 |
cp_description, cp_ce_annuaire_tela,
|
- |
|
442 |
cp_ce_meta)
|
- |
|
443 |
SELECT DISTINCT cpar_id_personne_02, '3', CONCAT('Inconnu #', cpar_id_personne_02) AS NOM_COMPLET, 'Inconnu', 'INCONNU',
|
388 |
VALUES (19, 3, 'Inconnu #19', 'Inconnu', 'INCONNU', 'Individu non présent dans l''annuaire Tela Botanica.', 19, @idm := @idm+1),
|
444 |
'Individu non présent dans l''annuaire Tela Botanica.', cpar_id_personne_02,
|
- |
|
445 |
@idm := @idm+1
|
- |
|
446 |
FROM tb_coel.coel_personne_a_relation
|
- |
|
447 |
WHERE cpar_id_personne_02 NOT IN (SELECT U_ID FROM tb_v4.annuaire_tela)
|
- |
|
448 |
ORDER BY cpar_id_personne_02 ASC;
|
389 |
(920, 3, 'Inconnu #920', 'Inconnu', 'INCONNU', 'Individu non présent dans l''annuaire Tela Botanica.', 920, @idm := @idm+1);
|
449 |
INSERT IGNORE INTO tb_coel.coel_meta_historique_ligne
|
390 |
INSERT INTO tb_coel.coel_meta_historique_ligne
|
450 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
|
391 |
(cmhl_id_historique_ligne, cmhl_ce_table, cmhl_cle_ligne, cmhl_enregistrement, cmhl_date_modification,
|
451 |
cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
|
- |
|
452 |
SELECT DISTINCT @idm_tmp := @idm_tmp+1, '113', cpar_id_personne_02, NULL, NOW(),
|
- |
|
453 |
CONCAT('Création de l''utilisateur inconnu #', cpar_id_personne_02,' non présent la table annuaire_tela.'), '1', '1', '162.38.234.1'
|
- |
|
454 |
FROM tb_coel.coel_personne_a_relation
|
- |
|
455 |
WHERE cpar_id_personne_02 NOT IN (SELECT U_ID FROM tb_v4.annuaire_tela)
|
- |
|
456 |
ORDER BY cpar_id_personne_02 ASC;
|
392 |
cmhl_notes, cmhl_ce_modifier_par, cmhl_ce_etat ,cmhl_ip)
|
- |
|
393 |
VALUES (@idm_tmp := @idm_tmp+1, '113', 19, NULL, NOW(), 'Création de l''utilisateur inconnu #19 non présent la table annuaire_tela.', '1', '1', '162.38.234.1'),
|
- |
|
394 |
(@idm_tmp := @idm_tmp+1, '113', 920, NULL, NOW(), 'Création de l''utilisateur inconnu #920 non présent la table annuaire_tela.', '1', '1', '162.38.234.1');
|