Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-26 19:20:38 +0300
committerGitHub <noreply@github.com>2019-03-26 19:20:38 +0300
commit087fa7f3952037a3be1ed59a2038ed1ba64be5db (patch)
tree0321275e2dcd6431eb19f43fdf0c8a427ec7b079 /settings
parentbe8a82ecbae7a730c936daf847f089ea065d3d5d (diff)
parent31fb0896a0881c34fa4d3989248e42d3bb806ab5 (diff)
Merge pull request #14857 from nextcloud/backport/14398/stable15
[stable15] Add setup check for missing UTF8MB4 on mysql
Diffstat (limited to 'settings')
-rw-r--r--settings/Controller/CheckSetupController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php
index 92c2b1b47db..b86f25a7fea 100644
--- a/settings/Controller/CheckSetupController.php
+++ b/settings/Controller/CheckSetupController.php
@@ -605,6 +605,10 @@ Raw output
return $recommendedPHPModules;
}
+ protected function isMysqlUsedWithoutUTF8MB4(): bool {
+ return ($this->config->getSystemValue('dbtype', 'sqlite') === 'mysql') && ($this->config->getSystemValue('mysql.utf8mb4', false) === false);
+ }
+
protected function hasBigIntConversionPendingColumns(): array {
// copy of ConvertFilecacheBigInt::getColumnsByTable()
$tables = [
@@ -679,6 +683,7 @@ Raw output
'appDirsWithDifferentOwner' => $this->getAppDirsWithDifferentOwner(),
'recommendedPHPModules' => $this->hasRecommendedPHPModules(),
'pendingBigIntConversionColumns' => $this->hasBigIntConversionPendingColumns(),
+ 'isMysqlUsedWithoutUTF8MB4' => $this->isMysqlUsedWithoutUTF8MB4(),
]
);
}