Fix typo. Also added isUtf8mb4Ready() to DbAbstract.

This commit is contained in:
Markus Birth 2022-02-13 00:10:19 +01:00
parent d6ebe7a46f
commit 8ecebf8940
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 13 additions and 1 deletions

View File

@ -166,7 +166,7 @@ function serendipity_db_probe($hash, &$errs)
return $db->probe($hash, $errs);
}
function serendipity_utf8mb4_reader()
function serendipity_utf8mb4_ready()
{
global $serendipity;
$db = DbFactory::createFromConfig($serendipity);

View File

@ -359,4 +359,16 @@ abstract class DbAbstract
public function probe($hash, &$errs)
{
}
/**
* Check if we think that it is safe to ugprade to utf8mb4. This checks version numbers and applied settings.
* Depending on the version of mariadb/mysql we need to check either one or three settings. We check for
* innodb being available with fulltext index and large index support, so that our database scheme can work
*
* @return boolean Whether the database could support utf8mb4
*/
public function isUtf8mb4Ready()
{
return false;
}
}