function simple_sitemap_update_8301 in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 simple_sitemap.install \simple_sitemap_update_8301()
Changing id and delta fields of simple_sitemap table from smallint to int.
File
- ./
simple_sitemap.install, line 692 - Module install and update procedures.
Code
function simple_sitemap_update_8301() {
$schema = \Drupal::database()
->schema();
$schema
->changeField('simple_sitemap', 'id', 'id', [
'description' => 'Sitemap chunk unique identifier.',
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
]);
$schema
->changeField('simple_sitemap', 'delta', 'delta', [
'description' => 'Delta of the chunk within the variant scope.',
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
]);
}