Commit 4f2c74b9 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Adaptations to datagouv datasets CSV structure

parent 77a3a8aa
......@@ -115,7 +115,7 @@ prepare_db_info() {
# Imports Data gouv CSVs into DB
$PYTHON $LIB_DIR/db/ --table_name data_gouv_organizations --csv_delimiter=semicolon --integer_cols=9,10,11,12,13 $DG_DUMP_DIR/organizations.csv $SQLITE_DB
$PYTHON $LIB_DIR/db/ --table_name data_gouv_datasets --csv_delimiter=semicolon --integer_cols=18,19,20,22 $DG_DUMP_DIR/datasets.csv $SQLITE_DB
$PYTHON $LIB_DIR/db/ --table_name data_gouv_datasets --csv_delimiter=semicolon --integer_cols=20,21,22,23,24,25 $DG_DUMP_DIR/datasets.csv $SQLITE_DB
$PYTHON $LIB_DIR/db/ --table_name data_gouv_resources --csv_delimiter=semicolon --integer_cols=20 $DG_DUMP_DIR/resources.csv $SQLITE_DB
# And add _siren et _nom columns
$SQLITE3 $SQLITE_DB < $LIB_DIR/db/add_siren_nom_to_datagouv_tables.sql
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment