function dblog_update_10100
Remove the year 2038 date limitation.
File
-
core/
modules/ dblog/ dblog.install, line 106
Code
function dblog_update_10100(&$sandbox = NULL) {
$connection = \Drupal::database();
if ($connection->schema()
->tableExists('watchdog') && $connection->databaseType() != 'sqlite') {
$new = [
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'Unix timestamp of when event occurred.',
'size' => 'big',
];
$connection->schema()
->changeField('watchdog', 'timestamp', 'timestamp', $new);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.