You are here

function simple_sitemap_update_8305 in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 4.x simple_sitemap.install \simple_sitemap_update_8305()

Add the link_count field to simple_sitemap table.

File

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

Code

function simple_sitemap_update_8305() {
  \Drupal::database()
    ->schema()
    ->addField('simple_sitemap', 'link_count', [
    'description' => 'The number of links in the sitemap.',
    'type' => 'int',
    'not null' => TRUE,
    'unsigned' => TRUE,
    'default' => 0,
  ]);
}