From ce21fcd17c63f098cfc0977fbab2dd834b724adc Mon Sep 17 00:00:00 2001 From: jgen Date: Sat, 22 Feb 2014 16:32:14 -0500 Subject: [PATCH] Enable logging of all PostgreSQL queries. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 094bf217..7565a8f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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