Changes for core/lib/Drupal/Core/Database/Install/Tasks.php: 16 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -68,6 +68,10 @@ abstract class Tasks {
'Failed to <strong>DROP</strong> a test table from your database server. We tried dropping a table with the command %query and the server reported the following error %error.',
],
],
[
'function'=>'checkJsonSupport',
'arguments'=>[],
],
];
/**
@@ -386,4 +390,16 @@ protected function getConnection() {
returnDatabase::getConnection();
}
/**
* Checks the database json support.
*/
protectedfunctioncheckJsonSupport(){
if($this->getConnection()->hasJson()){
$this->pass(t('Database connection supports the JSON type.'));
}
else{
$this->fail(t('<a href="https://www.drupal.org/docs/system-requirements">Database connection does not support JSON.</a>'));