Skip to content
Snippets Groups Projects
Commit 57a5a245 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Forcer la clé insee sur 2 chiffres lors de la migration V15 pour avoir un...

Forcer la clé insee sur 2 chiffres lors de la migration V15 pour avoir un numéro INSEE sur 15 chiffres dans tous les cas.
parent 6b1f8928
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ class MigrationIntervenants extends AbstractMigration
$bdd->logMsg("Traitement de l'intervenant $ind/$count, ID=" . $i['ID'], true);
$data = [
'NUMERO_INSEE' => $i['NUMERO_INSEE'] . $i['NUMERO_INSEE_CLE'],
'NUMERO_INSEE' => $i['NUMERO_INSEE'] . str_pad($i['NUMERO_INSEE_CLE'], 2, '0', STR_PAD_LEFT),
'TEL_PERSO' => $i['TEL_MOBILE'],
'DEPARTEMENT_NAISSANCE_ID' => $i['DEP_NAISSANCE_ID'],
'EMAIL_PRO' => $i['EMAIL'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment