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

17 lines
707 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');
\COPY fournisseur FROM '/tmp/marque.csv' (FORMAT CSV, header, ENCODING 'UTF8');