summaryrefslogtreecommitdiffstats
path: root/core/js/setupchecks.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-02-27 10:47:57 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-02-28 16:46:23 +0100
commit6c7ccbecbf6af5037a6c7bf2046bbf4d3bf91e2f (patch)
tree790c1c6bed9c6bb01ecf08672a9564493f5e6786 /core/js/setupchecks.js
parent75deeb110dd3033078aebc656c929fecf492a324 (diff)
downloadnextcloud-server-6c7ccbecbf6af5037a6c7bf2046bbf4d3bf91e2f.tar.gz
nextcloud-server-6c7ccbecbf6af5037a6c7bf2046bbf4d3bf91e2f.zip
Add setup check for missing UTF8MB4 on mysql
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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({