function migrate_update_10100
Remove the year 2038 date limitation.
File
-
core/
modules/ migrate/ migrate.install, line 18
Code
function migrate_update_10100(&$sandbox = NULL) {
$connection = \Drupal::database();
$tables = $connection->schema()
->findTables('migrate_map_%');
if (!empty($tables) && $connection->databaseType() != 'sqlite') {
foreach ($tables as $table) {
$new = [
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'UNIX timestamp of the last time this row was imported',
'size' => 'big',
];
$connection->schema()
->changeField($table, 'last_imported', 'last_imported', $new);
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.