You are here

function simplesitemap_update_8103 in Simple XML sitemap 8

Modifying database structure to hold one multilingual sitemap.

File

./simplesitemap.install, line 117
Module install and update procedures.

Code

function simplesitemap_update_8103() {
  db_truncate('simplesitemap')
    ->execute();
  db_drop_primary_key('simplesitemap');
  db_change_field('simplesitemap', 'language_code', 'id', array(
    'type' => 'serial',
    'not null' => TRUE,
  ), array(
    'primary key' => array(
      'id',
    ),
  ));
  return t('Before the sitemap can be accessed, it must be regenerated manually or via cron run.');
}