Enable logging of all PostgreSQL queries.
This commit is contained in:
parent
8ade958dd1
commit
ce21fcd17c
@ -18,9 +18,9 @@ install:
|
||||
# Install nginx, php5-fpm and configure them
|
||||
- sudo ./tests/setup_test_env.sh $TRAVIS_BUILD_DIR
|
||||
|
||||
# Create the database schema for shimmie.
|
||||
- if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS shimmie;" -U postgres; fi
|
||||
- if [[ "$DB" == "pgsql" ]]; then psql -c "CREATE DATABASE shimmie;" -U postgres; fi
|
||||
# Enable logging of all queries (for debugging) and create the database schema for shimmie.
|
||||
- if [[ "$DB" == "pgsql" ]]; then psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres; fi
|
||||
- if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS shimmie; CREATE DATABASE shimmie;" -U postgres; fi
|
||||
- if [[ "$DB" == "mysql" ]]; then mysql -e "SET GLOBAL general_log = 'ON';" -uroot; fi
|
||||
- if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE shimmie;" -uroot; fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user