From: Stéphane Jacob Date: Mon, 1 Nov 2010 21:52:01 +0000 (+0100) Subject: Prevents empty education inclusions. X-Git-Tag: xorg/1.0.2~167 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=323813b37319a88b6b0569657143d9fb0c038122;p=platal.git Prevents empty education inclusions. Signed-off-by: Stéphane Jacob --- diff --git a/upgrade/1.0.1/merge.php b/upgrade/1.0.1/merge.php index e1e7ba5..223249e 100755 --- a/upgrade/1.0.1/merge.php +++ b/upgrade/1.0.1/merge.php @@ -264,6 +264,9 @@ echo "Addresses inclusions finished.\n"; // Retrieves education from AX database. This is the hardest part since AX only kept education as an unformated string. echo "Starts educations inclusions.\n"; +// Deletes empty educations. +XDB::rawExecute("DELETE FROM fusionax_formations + WHERE Intitule_formation = '' AND Intitule_diplome = '' AND Descr_formation = ''"); // Insert ids into fusionax_formations to prevent many joins. XDB::rawExecute('UPDATE fusionax_formations AS f LEFT JOIN profile_education_enum AS pe ON (pe.name = f.Intitule_formation)