summaryrefslogtreecommitdiffstats
path: root/core/js/setupchecks.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-02-28 22:39:35 +0100
committerGitHub <noreply@github.com>2019-02-28 22:39:35 +0100
commit48804619c99660a0c2485c658d4514a34c2501ea (patch)
tree0b2e998c1f609ef8f00c3eca3cf091cc9ea8d4e4 /core/js/setupchecks.js
parentfb48abc35ab9d36c6d9eef5fa0ac1fe92bba0f73 (diff)
parent6c7ccbecbf6af5037a6c7bf2046bbf4d3bf91e2f (diff)
downloadnextcloud-server-48804619c99660a0c2485c658d4514a34c2501ea.tar.gz
nextcloud-server-48804619c99660a0c2485c658d4514a34c2501ea.zip
Merge pull request #14398 from nextcloud/feature/14394/add-setup-check-for-mysql-utf8mb4
Add setup check for missing UTF8MB4 on mysql
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r--core/js/setupchecks.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 7582b062d52..3e82e077994 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -438,6 +438,18 @@
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
});
}
+ if (data.isMysqlUsedWithoutUTF8MB4) {
+ messages.push({
+ msg: t(
+ 'core',
+ 'MySQL is used as database but does not support 4-byte characters. To be able to handle 4-byte characters (like emojis) without issues in filenames or comments for example it is recommended to enable the 4-byte support in MySQL. For further details read <a target="_blank" rel="noreferrer noopener" href="{docLink}">the documentation page about this</a>.',
+ {
+ docLink: oc_defaults.docPlaceholderUrl.replace('PLACEHOLDER', 'admin-mysql-utf8mb4'),
+ }
+ ),
+ type: OC.SetupChecks.MESSAGE_TYPE_WARNING
+ })
+ }
} else {
messages.push({