mirror of
https://github.com/ArthurDanjou/ArtStudies.git
synced 2026-01-14 22:59:57 +01:00
- Created a Docker Compose file to set up a MySQL container named M2_SQL_COURSE with an empty password and a database named TP. - Added a Makefile with a target to execute a SQL script (TP1.sql) inside the MySQL container and log the output. - Implemented the TP1.sql script to create tables for Magasin and Localite, insert initial data, and perform several queries.
4 lines
110 B
Makefile
4 lines
110 B
Makefile
# Makefile
|
|
|
|
tp1:
|
|
docker exec -i M2_SQL_COURSE mysql -u root TP -t < ./scripts/TP1.sql | tee logs/last-run.log
|