ordre sql
This commit is contained in:
16
postgresql-entrypoint-initdb.d/02_seed.sql
Normal file
16
postgresql-entrypoint-initdb.d/02_seed.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
truncate table adherent;
|
||||
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');
|
||||
Reference in New Issue
Block a user