Enable logging of all PostgreSQL queries.

This commit is contained in:
jgen 2014-02-22 16:32:14 -05:00
parent 8ade958dd1
commit ce21fcd17c

View File

@ -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