sql
This commit is contained in:
parent
560cce5337
commit
85fa189f2f
|
@ -5,8 +5,9 @@ DELETE FROM oa_duplicates WHERE created_by = 'dedupWf' and reltype = 'suggested'
|
|||
DELETE FROM organizations WHERE created_by = 'dedupWf' and modified_by = 'dedupWf';
|
||||
|
||||
-- FIX IMPORT DATA
|
||||
DELETE FROM tmp_dedup_events WHERE oa_name = '' AND oa_name IS NULL;
|
||||
UPDATE tmp_dedup_events SET oa_country = 'UNKNOWN' WHERE oa_country = '' OR oa_country IS NULL;
|
||||
UPDATE tmp_dedup_events SET oa_country = 'UNKNOWN' WHERE oa_country = '' OR oa_country IS NULL;
|
||||
UPDATE tmp_dedup_events SET oa_name = oa_acronym WHERE oa_name = '' OR oa_name IS NULL;
|
||||
DELETE FROM tmp_dedup_events WHERE oa_name = '' OR oa_name IS NULL;
|
||||
|
||||
-- NEW ORGANIZATIONS
|
||||
INSERT INTO organizations(id, name, country, status, ec_legalbody, ec_legalperson, ec_nonprofit, ec_researchorganization, ec_highereducation, ec_internationalorganizationeurinterests, ec_internationalorganization, ec_enterprise, ec_smevalidated, ec_nutscode, created_by, modified_by)
|
||||
|
|
Loading…
Reference in New Issue