1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Try to migrate mysql db to utf8

This commit is contained in:
Kay0u 2021-02-25 12:19:46 +01:00
parent ee18542f4b
commit b6e2057179
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 4 additions and 0 deletions

View file

@ -66,6 +66,9 @@ db_name=$(ynh_sanitize_dbid --db_name=$app)
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
ynh_mysql_setup_db --db_user=$db_name --db_name=$db_name
ynh_mysql_connect_as --user=$db_name --password="$db_pwd" --database=$db_name \
<<< "ALTER DATABASE $db_name CHARACTER SET utf8 COLLATE utf8_general_ci;"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================

View file

@ -221,6 +221,7 @@ then
# Print the current version number of Nextcloud
exec_occ -V
exec_occ db:convert-mysql-charset
# Upgrade may fail if this app is enabled
# Take all apps enabled, and check if mail is one of them