ean13
This commit is contained in:
@@ -2,7 +2,6 @@ create extension if not exists ltree;
|
||||
create extension if not exists pgtap;
|
||||
create extension if not exists postgis;
|
||||
create extension if not exists pgrouting;
|
||||
create extension if not exists vector;
|
||||
create extension if not exists pgcrypto;
|
||||
|
||||
create table adherent (
|
||||
@@ -46,6 +45,11 @@ create table ligne (
|
||||
quantite decimal
|
||||
);
|
||||
|
||||
create table marque (
|
||||
id int primary key,
|
||||
marque text not null
|
||||
);
|
||||
|
||||
create table fournisseur (
|
||||
id int primary key,
|
||||
fournisseur text not null
|
||||
|
||||
@@ -3,9 +3,14 @@ truncate table famille;
|
||||
truncate table article;
|
||||
truncate table ticket;
|
||||
truncate table ligne;
|
||||
truncate table marque;
|
||||
truncate table fournisseur;
|
||||
|
||||
\COPY adherent FROM '/tmp/adherent.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
\COPY famille FROM '/tmp/famille.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
\COPY article FROM '/tmp/article.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
\COPY ticket FROM '/tmp/ticket.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
\COPY ligne FROM '/tmp/ligne.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
|
||||
\COPY marque FROM '/tmp/marque.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
\COPY fournisseur FROM '/tmp/marque.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
|
||||
1
docker-entrypoint-initdb.d/6_end.sql
Normal file
1
docker-entrypoint-initdb.d/6_end.sql
Normal file
@@ -0,0 +1 @@
|
||||
\dx
|
||||
Reference in New Issue
Block a user