Skip to content

Commit

Permalink
Set empty iso3 codes to null
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Jan 22, 2024
1 parent 6c220c6 commit 8e072d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions API/data/hdx.sql
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ INSERT INTO public.hdx (iso3,cid,hdx_upload,dataset,queue,meta,categories,geomet
('PAN',155,true,'{"dataset_title": "Panama", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_pan", "dataset_locations": ["pan"]}','raw_special',false,NULL,NULL),
('MKD',206,true,'{"dataset_title": "North Macedonia", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_mkd", "dataset_locations": ["mkd"]}','raw_special',false,NULL,NULL),
('NOR',154,true,'{"dataset_title": "Norway", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_nor", "dataset_locations": ["nor"]}','raw_special',false,NULL,NULL),
('',9,true,'{"dataset_title": "Nyiragongo volcanic eruption", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_volcano_nyiragongo", "dataset_locations": ["cod"]}','raw_special',false,NULL,NULL),
(NULL,9,true,'{"dataset_title": "Nyiragongo volcanic eruption", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_volcano_nyiragongo", "dataset_locations": ["cod"]}','raw_special',false,NULL,NULL),
('OMN',101,true,'{"dataset_title": "Oman", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_omn", "dataset_locations": ["omn"]}','raw_special',false,NULL,NULL),
('PAK',114,true,'{"dataset_title": "Pakistan", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_pak", "dataset_locations": ["pak"]}','raw_special',false,NULL,NULL),
('PLW',8,true,'{"dataset_title": "Palau", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_plw", "dataset_locations": ["plw"]}','raw_special',false,NULL,NULL),
Expand All @@ -216,7 +216,7 @@ INSERT INTO public.hdx (iso3,cid,hdx_upload,dataset,queue,meta,categories,geomet
('SHN',52,true,'{"dataset_title": "Saint Helena, Ascension and Tristan da Cunha", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_shn", "dataset_locations": ["shn"]}','raw_special',false,NULL,NULL),
('KNA',99,true,'{"dataset_title": "Saint Kitts and Nevis", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_kna", "dataset_locations": ["kna"]}','raw_special',false,NULL,NULL),
('LCA',95,true,'{"dataset_title": "Saint Lucia", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_lca", "dataset_locations": ["lca"]}','raw_special',false,NULL,NULL),
('',18,true,'{"dataset_title": "Saint Martin and Sint Maarten", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_maf_sxm", "dataset_locations": ["maf", "sxm"]}','raw_special',false,NULL,NULL),
(NULL,18,true,'{"dataset_title": "Saint Martin and Sint Maarten", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_maf_sxm", "dataset_locations": ["maf", "sxm"]}','raw_special',false,NULL,NULL),
('SMR',105,true,'{"dataset_title": "San Marino", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_smr", "dataset_locations": ["smr"]}','raw_special',false,NULL,NULL),
('STP',51,true,'{"dataset_title": "Sao Tome And Principe", "dataset_folder": "HDX", "dataset_update_frequency": "monthly", "dataset_prefix": "hotosm_stp", "dataset_locations": ["stp"]}','raw_special',false,NULL,NULL);
INSERT INTO public.hdx (iso3,cid,hdx_upload,dataset,queue,meta,categories,geometry) VALUES
Expand Down
Loading

0 comments on commit 8e072d1

Please sign in to comment.