-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it easier to spot schema + fixture errors #1928
Conversation
@AronNovak Thanks. Can you share a screenshot of how it will look now |
psql -h $$PWD/build/db -d app < "${IHP_LIB}/IHPSchema.sql" | ||
psql -h $$PWD/build/db -d app < Application/Schema.sql | ||
psql -h $$PWD/build/db -d app < Application/Fixtures.sql | ||
(echo "drop schema public cascade; create schema public;" | psql -h $${PWD}/build/db -d app) && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the other make files, we don't use && \
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, but this way, we can stop on error. Otherwise it goes on, as each line is executed in a new subshell.
Most of all, it has exit code |
Thanks, I was missing such a feature 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍 good addition
make db
right now silently moves on if there's an error in the Schema or in the Fixture. It should not be like that.