From 00eecafcc64eaa10d6c0d1d62b269617fa693a6d Mon Sep 17 00:00:00 2001 From: Dani Garcia Date: Wed, 17 Jan 2024 10:51:54 +0100 Subject: [PATCH] test-schema: Add debugging messages --- app/bin/test-schema | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/bin/test-schema b/app/bin/test-schema index 575264f..e3792b2 100755 --- a/app/bin/test-schema +++ b/app/bin/test-schema @@ -8,18 +8,25 @@ SCRIPT_DIR=$(dirname $(realpath $0)) pushd ${SCRIPT_DIR}/../ # Create database and load initial data + echo "Create database and load initial data" bin/console doctrine:database:create -vv + + echo "Load initial.sql" mysql -uroot -hdb -pchangeme demo < migrations/initial.sql # Apply all migrations + echo "Apply all migrations" bin/console doctrine:migrations:migrate -vv --no-interaction # Validate ORM mapping files + echo "Validate ORM mapping files" bin/console doctrine:schema:validate -vv # Check no changes are pending to be mapped + echo "Check no changes are pending to be mapped" bin/console doctrine:schema:update -vv --dump-sql | grep 'Nothing to update' # Check no changes are generated + echo " Check no changes are generated" # bin/console doctrine:migrations:diff --allow-empty-diff -n | grep 'No changes detected' popd