Open kdionisio opened 7 years ago
Command to load dose results into DB after chemical_id matching has been done in R. Dose results are from 8/3 S2D version.
LOAD DATA LOCAL INFILE '/home/kdionisio/HEM/output/S2D/allPUCs_OPP/Daily/S2D_daily_all_allPUCs_OPP.csv' INTO TABLE hem_app_dose FIELDS TERMINATED BY ',' ENCLOSED BY '"' ignore 1 lines (person_id, chemical_id, day, dir_derm_exp, dir_derm_max, dir_derm_abs, dir_inhal_exp, dir_inhal_mass, dir_inhal_max, dir_inhal_abs, dir_ingest_exp, dir_ingest_abs, hem_app_dose.release, ind_derm_exp, ind_derm_max, ind_derm_abs, ind_inhal_exp, ind_inhal_max, ind_inhal_mass, ind_inhal_abs, ind_ingest_exp, ind_ingest_abs, out_sur, out_air, drain, waste) SET created_at = NOW(), updated_at = NOW(), runparams_id=1;
loaded into prod_hem
Load directly to production database, after #146 is complete