diff --git a/code/db/.gitignore b/code/db/.gitignore new file mode 100644 index 0000000..908a368 --- /dev/null +++ b/code/db/.gitignore @@ -0,0 +1 @@ +dbdata diff --git a/code/db/telereview.sql b/code/db/telereview.sql index e2513f5..365f8fd 100644 --- a/code/db/telereview.sql +++ b/code/db/telereview.sql @@ -52,7 +52,7 @@ CREATE TABLE `borne_criteres` ( -- INSERT INTO `borne_criteres` (`id`, `nom`) VALUES -(1, 'analyse'); +(1, 'analyse'), (2, 'proprete'), (3, 'calme'), (4, 'attente'); @@ -426,4 +426,4 @@ ALTER TABLE `stats_general_mois` -- ALTER TABLE `stats_general_semaine` MODIFY `id` int NOT NULL AUTO_INCREMENT; -COMMIT; \ No newline at end of file +COMMIT; diff --git a/code/docker-compose.yaml b/code/docker-compose.yaml index 0208ad7..8c824f1 100644 --- a/code/docker-compose.yaml +++ b/code/docker-compose.yaml @@ -9,6 +9,7 @@ services: - 3306 volumes: - ./db:/docker-entrypoint-initdb.d + - ./db/dbdata:/var/lib/mysql restart: always healthcheck: test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot"] # Command to check health. @@ -124,4 +125,4 @@ services: devices: - /dev/video0:/dev/video0 - /dev/video2:/dev/video1 - - /dev/video3:/dev/video2 \ No newline at end of file + - /dev/video3:/dev/video2