FEATURE ajout reprise de localisations - prepare
This commit is contained in:
1 parent
3651b1a09b
commit
fd4e68faa8
3 files changed
+28
-1
No files matched your search
@@ -67,7 +67,7 @@ On peut aussi utiliser la fonction `\copy` de psql pour charger un fichier csv d
|
||||
|
||||
Tout d'abord, les tables du schéma "import" doivent être préparées avec le script `prepare-import.sql`.
|
||||
|
||||
Puis on importe les 4 fichiers csv:
|
||||
Puis on importe les fichiers csv:
|
||||
|
||||
```bash
|
||||
psql chill-import
|
||||
@@ -75,6 +75,8 @@ chill-import=# \copy "import".choix_personnes FROM 'choix_personnes.csv' DELIMIT
|
||||
chill-import=# \copy "import".personnes FROM 'personnes.csv' DELIMITER ',' CSV HEADER
|
||||
chill-import=# \copy "import".choix_periodes FROM 'choix_periodes.csv' DELIMITER ',' CSV HEADER
|
||||
chill-import=# \copy "import".periodes FROM 'periodes.csv' DELIMITER ',' CSV HEADER
|
||||
chill-import=# \copy "import".choix_localisations FROM 'choix_localisations.csv' DELIMITER ',' CSV HEADER
|
||||
chill-import=# \copy "import".localisations FROM 'localisations.csv' DELIMITER ',' CSV HEADER
|
||||
```
|
||||
|
||||
Enfin, on exporte la base de données en sql:
|
||||
|
||||
Reference in new issue
Block a user