Skip to content

Commit

Permalink
Merge pull request #359 from elfranne/UTF8default
Browse files Browse the repository at this point in the history
set encoding when creating the DB
  • Loading branch information
bastelfreak authored May 7, 2024
2 parents d1f1619 + 0c5c270 commit 8505a7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/database/postgresql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
postgresql::server::db { $database_name:
user => $database_username,
password => $database_password,
encoding => 'UTF8',
locale => 'en_US.UTF-8',
grant => 'all',
port => $port,
}
Expand Down
2 changes: 2 additions & 0 deletions spec/unit/classes/database/postgresql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
password: params[:database_password],
grant: 'all',
port: params[:database_port].to_i,
encoding: 'UTF8',
locale: 'en_US.UTF-8',
)
}

Expand Down

0 comments on commit 8505a7c

Please sign in to comment.