From c8e00e41873965882ba6feb09ab7432bbdf0d90c Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Mon, 16 Aug 2021 22:07:24 +0100 Subject: [PATCH] [TOOLS] Add make command 'database-force-schema-update' to update the database schema and 'redis-shell' --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index d84d06df65..086231d448 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ up: .PHONY down: .PHONY docker-compose down +redis-shell: + docker exec -it $(strip $(DIR))_redis_1 sh -c 'redis-cli' + php-repl: .PHONY docker exec -it $(strip $(DIR))_php_1 sh -c '/var/www/social/bin/console psysh' @@ -18,6 +21,9 @@ php-shell: .PHONY psql-shell: .PHONY docker exec -it $(strip $(DIR))_db_1 sh -c "psql -U postgres social" +database-force-schema-update: + docker exec -it $(strip $(DIR))_php_1 sh -c "/var/www/social/bin/console doctrine:schema:update --dump-sql --force" + test: .PHONY cd docker/testing && docker-compose run php; docker-compose down