Files
sql/postgresql-entrypoint-initdb.d/02_seed.sql

20 lines
893 B
MySQL
Raw Normal View History

2025-08-28 15:01:31 +02:00
truncate table adherent;
truncate table famille;
truncate table article;
truncate table ticket;
truncate table ligne;
2025-09-14 22:12:09 +02:00
truncate table marque;
truncate table fournisseur;
2025-08-28 15:01:31 +02:00
\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');
2025-09-14 22:12:09 +02:00
\COPY marque FROM '/tmp/marque.csv' (FORMAT CSV, header, ENCODING 'UTF8');
2025-10-31 07:42:56 +01:00
\COPY fournisseur FROM '/tmp/fournisseur.csv' (FORMAT CSV, header, ENCODING 'UTF8');
\COPY produit FROM '/tmp/produits/cereales_petitdejeuner.csv' (FORMAT CSV, header, ENCODING 'UTF8');
2025-11-01 16:36:49 +01:00
\COPY personne FROM '/tmp/personne.csv' (FORMAT CSV, header, ENCODING 'UTF8');