@@ -5,9 +5,9 @@ PHPCSFIXER?=$(EXEC) php -d memory_limit=1024m vendor/bin/php-cs-fixer
55
66.DEFAULT_GOAL := help
77.PHONY : help start stop restart install uninstall reset clear-cache tty clear clean
8- .PHONY : db-diff db-migrate db-rollback db-reset db-validate wait-for-db
8+ .PHONY : db-diff db-migrate db-rollback db-fixtures db-validate
99.PHONY : watch assets assets-build
10- .PHONY : tests lint lint-symfony lint-yaml lint-twig lint-twig php-cs php-cs-fix security-check test-schema test-all
10+ .PHONY : tests lint lint-symfony lint-yaml lint-twig lint-xliff php-cs php-cs-fix security-check test-schema test-all
1111.PHONY : build up perm
1212.PHONY : docker-compose.override.yml
1313
@@ -55,27 +55,19 @@ clean: clear
5555# # Database
5656# #---------------------------------------------------------------------------
5757
58- wait-for-db :
59- $(EXEC ) php -r " set_time_limit(60);for(;;){if(@fsockopen('db',3306)){break;}echo \" Waiting for MySQL\n\" ;sleep(1);}"
60-
61- db-diff : vendor wait-for-db # # Generate a migration by comparing your current database to your mapping information
58+ db-diff : vendor # # Generate a migration by comparing your current database to your mapping information
6259 $(EXEC ) $(CONSOLE ) doctrine:migration:diff
6360
64- db-migrate : vendor wait-for-db # # Migrate database schema to the latest available version
61+ db-migrate : vendor # # Migrate database schema to the latest available version
6562 $(EXEC ) $(CONSOLE ) doctrine:migration:migrate -n
6663
67- db-rollback : vendor wait-for-db # # Rollback the latest executed migration
64+ db-rollback : vendor # # Rollback the latest executed migration
6865 $(EXEC ) $(CONSOLE ) doctrine:migration:migrate prev -n
6966
70- db-reset : vendor wait-for-db # # Reset the database
71- $(EXEC ) $(CONSOLE ) doctrine:database:drop --force --if-exists
72- $(EXEC ) $(CONSOLE ) doctrine:database:create --if-not-exists
73- $(EXEC ) $(CONSOLE ) doctrine:migrations:migrate -n
74-
75- db-fixtures : vendor wait-for-db # # Apply doctrine fixtures
67+ db-fixtures : vendor # # Apply doctrine fixtures
7668 $(EXEC ) $(CONSOLE ) doctrine:fixtures:load -n
7769
78- db-validate : vendor wait-for-db # # Check the ORM mapping
70+ db-validate : vendor # # Check the ORM mapping
7971 $(EXEC ) $(CONSOLE ) doctrine:schema:validate
8072
8173
0 commit comments