Commit f1ad1349 authored by gbyte.co's avatar gbyte.co

Changing update 8106 to use lower level API for chaning the column name.

parent 61c1e2a8
......@@ -116,11 +116,8 @@ function simplesitemap_update_8105() {
* Changing column name to 'sitemap_created', as 'generated' is a reserved word since MySQL 5.7.6.
*/
function simplesitemap_update_8106() {
db_change_field('simplesitemap', 'generated', 'sitemap_created', array(
'description' => 'Timestamp of sitemap chunk generation.',
'type' => 'int',
'default' => 0,
'not null' => TRUE,
));
// 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");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment