Skip to content

Commit

Permalink
test-schema: Add debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
danigargar committed Jan 17, 2024
1 parent 9de0ef3 commit 00eecaf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/bin/test-schema
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 00eecaf

Please sign in to comment.