You are here

function simple_sitemap_update_8401 in Simple XML sitemap 4.x

Change the simple_sitemap ID column to serial.

File

./simple_sitemap.install, line 819
Module install and update procedures.

Code

function simple_sitemap_update_8401() {
  \Drupal::database()
    ->schema()
    ->changeField('simple_sitemap', 'id', 'id', [
    'description' => 'Sitemap chunk unique identifier.',
    'type' => 'serial',
    'not null' => TRUE,
    'unsigned' => TRUE,
  ]);
}