function simple_sitemap_update_8305 in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 simple_sitemap.install \simple_sitemap_update_8305()
Add the link_count field to simple_sitemap table.
File
- ./
simple_sitemap.install, line 803 - 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,
]);
}