Small typos in import.sql
This commit is contained in:
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
canvas/chill_canevas_reprise-de-données.xlsx
Normal file → Executable file
0
canvas/chill_canevas_reprise-de-données.xlsx
Normal file → Executable file
0
csv/choix_periodes.dist.csv
Normal file → Executable file
0
csv/choix_periodes.dist.csv
Normal file → Executable file
0
csv/choix_personnes.dist.csv
Normal file → Executable file
0
csv/choix_personnes.dist.csv
Normal file → Executable file
0
csv/periodes.dist.csv
Normal file → Executable file
0
csv/periodes.dist.csv
Normal file → Executable file
0
csv/personnes.dist.csv
Normal file → Executable file
0
csv/personnes.dist.csv
Normal file → Executable file
@@ -499,7 +499,7 @@ UPDATE import.localisations AS loc SET address_ref_id = cmar.id FROM chill_main_
|
||||
WHERE
|
||||
cmar.postcode_id = ANY(loc.postcode_arr)
|
||||
AND similarity(trim(loc.street), trim(cmar.street)) > 0.6
|
||||
AND trim(loc.streetnumber) = trim(cmar.streetnumber)
|
||||
AND trim(loc.streetnumber) = trim(cmar.streetnumber);
|
||||
|
||||
--SELECT * FROM import.localisations as l
|
||||
--WHERE l.address_ref_id IS NULL
|
||||
@@ -600,7 +600,7 @@ INSERT INTO public.users
|
||||
(id, username, "password", enabled, "locked", usernamecanonical, email, emailcanonical, "label", civility_id, phonenumber)
|
||||
SELECT nextval('users_id_seq'),
|
||||
SPLIT_PART(t."email",'@',1),
|
||||
'', --TODO PW
|
||||
'',
|
||||
TRUE,
|
||||
TRUE,
|
||||
t."login",
|
||||
@@ -659,7 +659,7 @@ SET postcode_arr = (
|
||||
UPDATE import.tiers AS tiers SET address_ref_id = cmar.id FROM chill_main_address_reference AS cmar
|
||||
WHERE
|
||||
cmar.postcode_id = ANY(tiers.postcode_arr)
|
||||
AND similarity(trim(tiers.adresse), trim(cmar.street)) > 0.6
|
||||
AND similarity(trim(tiers.adresse), trim(cmar.street)) > 0.6;
|
||||
|
||||
--SELECT * FROM import.tiers as l
|
||||
--WHERE l.address_ref_id IS NULL
|
||||
|
0
third_party/README.md
vendored
Normal file → Executable file
0
third_party/README.md
vendored
Normal file → Executable file
0
third_party/import_third_party_to_sql.py
vendored
Normal file → Executable file
0
third_party/import_third_party_to_sql.py
vendored
Normal file → Executable file
Reference in New Issue
Block a user