Skip to content

Commit

Permalink
Ensure that strap catalog uses UTF-8 for database reads and writes (GH
Browse files Browse the repository at this point in the history
…#95).

This change only applies to MySQL and PostgreSQL databases.
  • Loading branch information
racke committed May 2, 2016
1 parent 1272271 commit 5c014d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/strap/dbconf/mysql/mysql.cfg
Expand Up @@ -9,6 +9,9 @@ DatabaseDefault PASS __SQLPASS__
# Default column type
DatabaseDefault DEFAULT_TYPE varchar(255)

# Use UTF-8 for database reads and writes
DatabaseDefault MYSQL_ENABLE_UTF8 1

# Include each table definition from its separate file.
include dbconf/mysql/*.mysql

Expand Down
3 changes: 3 additions & 0 deletions dist/strap/dbconf/pgsql/pgsql.cfg
Expand Up @@ -6,6 +6,9 @@ Message -i -n Using PostgreSQL, DSN=__SQLDSN__...
DatabaseDefault USER __SQLUSER__
DatabaseDefault PASS __SQLPASS__

# Use UTF-8 for database reads and writes
DatabaseDefault PG_ENABLE_UTF8 1

# Include each table definition from its separate file.
include dbconf/pgsql/*.pgsql

Expand Down

0 comments on commit 5c014d9

Please sign in to comment.