Ohad Basan has uploaded a new change for review.

Change subject: backend: change template1 to utf8 encoding.
......................................................................

backend: change template1 to utf8 encoding.

creating the engine db fails since it is basing on template1 which
contains ASCII encoding which is incompatible with the engine's db UTF8
encoding. this patch alters template to be on UTF8 encoding.

Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=869275

Change-Id: I3da279df011087d8fb4ac1f61fe9637baac11e1a
Signed-off-by: Ohad Basan <[email protected]>
---
M backend/manager/dbscripts/create_db.sh
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/44/8744/1

diff --git a/backend/manager/dbscripts/create_db.sh 
b/backend/manager/dbscripts/create_db.sh
index d0a1fb9..d2af3cb 100755
--- a/backend/manager/dbscripts/create_db.sh
+++ b/backend/manager/dbscripts/create_db.sh
@@ -45,6 +45,8 @@
 printf "Creating the database: ${DATABASE}\n"
 #try to drop the database first (if exists)
 dropdb --username=${USERNAME} --host=${SERVERNAME} --port=${PORT} ${DATABASE} 
-e > /dev/null
+#change template1 to UTF8 encoding
+execute_file "alter_encoding.sql" postgres ${SERVERNAME} ${PORT} > /dev/null
 createdb --username=${USERNAME} --host=${SERVERNAME} --port=${PORT} 
${DATABASE} -e -E UTF8 > /dev/null
 if [ $? -ne 0 ]
     then


--
To view, visit http://gerrit.ovirt.org/8744
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3da279df011087d8fb4ac1f61fe9637baac11e1a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ohad Basan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to