function simplesitemap_update_8104 in Simple XML sitemap 8
Modifying database structure to accommodate sitemap chunks.
File
- ./
simplesitemap.install, line 130 - Module install and update procedures.
Code
function simplesitemap_update_8104() {
db_truncate('simplesitemap')
->execute();
db_change_field('simplesitemap', 'id', 'id', array(
'type' => 'int',
'size' => 'small',
'not null' => TRUE,
));
\Drupal::service('config.factory')
->getEditable('simplesitemap.settings')
->set('settings', array(
'max_links' => 2000,
))
->save();
return t('Before the sitemap can be accessed, it must be regenerated manually or via cron run.');
}