Skip to content

Commit

Permalink
chore(sql-client): specify encoding when creating database
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna committed Jul 25, 2020
1 parent 4d33fef commit 2645c8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ matrix:
- cd atcoder-problems-backend/
before_script:
- psql -c "CREATE USER kenkoooo PASSWORD 'pass';" -U postgres
- psql -c "CREATE DATABASE test OWNER kenkoooo;" -U postgres
- psql -c "CREATE DATABASE test OWNER kenkoooo ENCODING utf8;" -U postgres
script:
- cargo clean
- cargo build
Expand Down
1 change: 1 addition & 0 deletions atcoder-problems-backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
POSTGRES_USER: db_user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
POSTGRES_INITDB_ARGS: "--encoding=UTF8"
volumes:
- ../config/database-definition.sql:/docker-entrypoint-initdb.d/init.sql
api_server:
Expand Down

0 comments on commit 2645c8c

Please sign in to comment.