$mysql_index_error =
$pdo_exception instanceof \PDOException &&
$pdo_exception->
getCode() === '42000' &&
$pdo_exception->errorInfo
[1
] === 1071;
$chunk_size--;
// Rethrow the exception if the source IDs can not be in smaller
// groups.
if (!
$mysql_index_error ||
$chunk_size <= 0
) { throw $e;
} } } // Now do the message table.
if (!
$this->
getDatabase()->
schema()->
tableExists($this->
messageTableName())) { $fields =
[];
$fields['msgid'
] =
[ 'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
];
$fields +=
$source_ids_hash;
$fields['level'
] =
[ 'type' => 'int',
'unsigned' => TRUE,