2015-08-28 19:54:24 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Contains install and update functions for Migrate.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
Issue #3087644 by jibran, Berdir, alexpott, longwave, Wim Leers, amateescu, catch, xjm, larowlan, dpi, quietone: Remove Drupal 8 updates up to and including 88**
2020-01-24 23:52:03 +00:00
|
|
|
* Implements hook_update_last_removed().
|
2015-08-28 19:54:24 +00:00
|
|
|
*/
|
Issue #3087644 by jibran, Berdir, alexpott, longwave, Wim Leers, amateescu, catch, xjm, larowlan, dpi, quietone: Remove Drupal 8 updates up to and including 88**
2020-01-24 23:52:03 +00:00
|
|
|
function migrate_update_last_removed() {
|
|
|
|
return 8001;
|
2015-08-28 19:54:24 +00:00
|
|
|
}
|
Issue #3215062 by quietone, gambry, ravi.shankar, dww, daffie, yogeshmpawar, aarti zikre, alexpott, mfb, larowlan, longwave, catch: Update hook_schema for Y2038
2022-07-23 05:46:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove the year 2038 date limitation.
|
|
|
|
*/
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|