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

12 lines
500 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;
\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');