Skip to content

Commit

Permalink
Make sure database encoding is utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 20, 2012
1 parent ea22435 commit a14db47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckan_deb/usr/lib/ckan/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ ckan_ensure_db_exists () {
COMMAND_OUTPUT=`sudo -u postgres psql -c "select datname from pg_database where datname='$INSTANCE'"`
if ! [[ "$COMMAND_OUTPUT" =~ ${INSTANCE} ]] ; then
echo "Creating the database ..."
sudo -u postgres createdb -O ${INSTANCE} ${INSTANCE}
sudo -u postgres createdb -O ${INSTANCE} ${INSTANCE} -E utf-8
paster --plugin=ckan db init --config=/etc/ckan/${INSTANCE}/${INSTANCE}.ini
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion doc/datastore-setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Create a read-only user called ``readonlyuser``, and enter pass for the password

Create the database (owned by ``writeuser``), which we’ll call ``datastore``::

sudo -u postgres createdb -O writeuser datastore
sudo -u postgres createdb -O writeuser datastore -E utf-8

Set URLs
--------
Expand Down
2 changes: 1 addition & 1 deletion doc/install-from-source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ prompted::

Create the database (owned by ``ckanuser``), which we'll call ``ckantest``::

sudo -u postgres createdb -O ckanuser ckantest
sudo -u postgres createdb -O ckanuser ckantest -E utf-8

4. Create a CKAN config file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit a14db47

Please sign in to comment.