IF(q.profile_freetext_pub = 'public', 'public', 'private') AS freetext_pub,
IF(q.profile_medals_pub = 'public', 'public', 'private') AS medals_pub,
IF(q.emails_alias_pub = 'public', 'public', 'private') AS alias_pub,
- IF(u.nationalite = '' OR u.nationalite IS NULL, NULL, u.nationalite) AS nationality1,
- NULL AS nationality2, NULL AS nationality3, u.date AS last_change
+ IF(u.nationalite = '' OR u.nationalite IS NULL or u.nationalite = '00' or u.nationalite = '0', NULL, u.nationalite) AS nationality1,
+ NULL AS nationality2, NULL AS nationality3, NULL AS email_directory, u.date AS last_change
from #x4dat#.auth_user_md5 AS u
left join #x4dat#.auth_user_quick AS q ON (u.user_id = q.user_id)
where u.hruid is not null;
ALTER TABLE geoloc_countries MODIFY COLUMN phoneFormat VARCHAR(255) NOT NULL DEFAULT "";
DELETE FROM geoloc_countries
- WHERE iso_3166_1_a2 = "TP" OR iso_3166_1_a2 = "YU";
+ WHERE iso_3166_1_a2 = "TP" OR iso_3166_1_a2 = "YU" OR iso_3166_1_a2 = "00";
INSERT INTO geoloc_countries (iso_3166_1_a2, iso_3166_1_a3, iso_3166_1_num, worldRegion,
country, countryFR, capital, nationalityFR,
WHERE iso_3166_1_a2 = "PY";
UPDATE geoloc_countries
- SET nationalityFR = NULL, belongsTo = "US"
+ SET nationalityFR = "Porto-ricain", belongsTo = "US"
WHERE iso_3166_1_a2 = "PR";
UPDATE geoloc_countries
WHERE iso_3166_1_a2 = "RW";
UPDATE geoloc_countries
- SET nationalityFR = NULL, capital = ""
+ SET nationalityFR = "Saharien occidental", capital = ""
WHERE iso_3166_1_a2 = "EH";
UPDATE geoloc_countries