summaryrefslogtreecommitdiff
path: root/dumps
diff options
context:
space:
mode:
Diffstat (limited to 'dumps')
-rwxr-xr-xdumps/load-dumps.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumps/load-dumps.sh b/dumps/load-dumps.sh
index a94f500..a365c16 100755
--- a/dumps/load-dumps.sh
+++ b/dumps/load-dumps.sh
@@ -2,7 +2,7 @@
pushd $(dirname $0) >> /dev/null
grep -v '^#' .mapping | while read DB DUMP
do
- grep -v 'CREATE DATABASE' $DUMP | grep -vi '^Use ' | mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB
+ grep -v 'CREATE DATABASE' $DUMP | grep -vi '^Use ' | sed 's/SET NAMES cp1250/SET NAMES utf8mb4/g' | mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB
if [[ $(mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB -N -e "SELECT language FROM params;") == *"english.language"* ]]
then
<logoh.en.sql mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB