[TOOLS] Add make command 'database-force-schema-update' to update the database schema and 'redis-shell'

This commit is contained in:
Hugo Sales 2021-08-16 22:07:24 +01:00
parent 8ca61eea77
commit c8e00e4187
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -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