You are here

function simple_sitemap_update_8301 in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 4.x 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 697
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,
  ]);
}