function locale_update_10100

Remove the year 2038 date limitation.

File

core/modules/locale/locale.install, line 329

Code

function locale_update_10100(&$sandbox = NULL) {
  $connection = \Drupal::database();
  if ($connection->schema()
    ->tableExists('locale_file') && $connection->databaseType() != 'sqlite') {
    $new = [
      'type' => 'int',
      'not null' => FALSE,
      'default' => 0,
      'description' => 'Unix timestamp of the imported file.',
      'size' => 'big',
    ];
    $connection->schema()
      ->changeField('locale_file', 'timestamp', 'timestamp', $new);
    $new = [
      'type' => 'int',
      'not null' => FALSE,
      'default' => 0,
      'description' => 'Unix timestamp of the last time this translation was confirmed to be the most recent release available.',
      'size' => 'big',
    ];
    $connection->schema()
      ->changeField('locale_file', 'last_checked', 'last_checked', $new);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.