X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=upgrade%2Fnewdirectory-0.0.1%2F15_addresses.sql;h=8ce64b6025d6dd9228925f38d569af8188bdf6cb;hb=0b5aebe16a9eb47158fce84e84d16206d2789f31;hp=824e69aec9f037c81bf8afa5dfebce8d90596827;hpb=1daa72c23026adf3e057c7b6c47d5d35837258b5;p=platal.git diff --git a/upgrade/newdirectory-0.0.1/15_addresses.sql b/upgrade/newdirectory-0.0.1/15_addresses.sql index 824e69a..8ce64b6 100644 --- a/upgrade/newdirectory-0.0.1/15_addresses.sql +++ b/upgrade/newdirectory-0.0.1/15_addresses.sql @@ -38,10 +38,10 @@ INSERT INTO profile_addresses (pid, id, postalCode, updateTime, pub, comment, l countryId, type, flags) SELECT uid, adrid, postcode, datemaj, pub, NULL, glat, glng, IF(country = '' OR country = '00', NULL, country), IF(FIND_IN_SET('pro', 'statut'), 'job', 'home'), - CONCAT(IF(FIND_IN_SET('res-secondaire', 'statut'), 'secondary,', ''), - IF(FIND_IN_SET('courrier', 'statut'), 'mail,', ''), - IF(FIND_IN_SET('active', 'statut'), 'current,', ''), - IF(FIND_IN_SET('temporaire', 'statut'), 'temporary', '')) + CONCAT(IF(FIND_IN_SET('res-secondaire', statut), 'secondary,', ''), + IF(FIND_IN_SET('courrier', statut), 'mail,', ''), + IF(FIND_IN_SET('active', statut), 'current,', ''), + IF(FIND_IN_SET('temporaire', statut), 'temporary', '')) FROM #x4dat#.adresses; INSERT INTO profile_addresses (pid, jobid, id, postalCode, pub, comment,