function statistics_update_10100
Same name in other branches
- 10 core/modules/statistics/statistics.install \statistics_update_10100()
Remove the year 2038 date limitation.
File
-
core/
modules/ statistics/ statistics.install, line 74
Code
function statistics_update_10100(&$sandbox = NULL) {
$connection = \Drupal::database();
if ($connection->schema()
->tableExists('node_counter') && $connection->databaseType() != 'sqlite') {
$new = [
'description' => 'The most recent time the {node} has been viewed.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'size' => 'big',
];
$connection->schema()
->changeField('node_counter', 'timestamp', 'timestamp', $new);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.