You are here

function simplesitemap_update_8106 in Simple XML sitemap 8

Changing column name to 'sitemap_created', as 'generated' is a reserved word since MySQL 5.7.6.

File

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

Code

function simplesitemap_update_8106() {

  // Omitting the high level DB API to be able to escape the column name.
  Drupal\Core\Database\Database::getConnection()
    ->query("alter table {simplesitemap} CHANGE `generated` sitemap_created int(11) NOT NULL");
}