diff --git a/xmlsitemap.install b/xmlsitemap.install index cf18d71..433f6f6 100644 --- a/xmlsitemap.install +++ b/xmlsitemap.install @@ -201,7 +201,7 @@ function xmlsitemap_schema() { 'loc' => [ 'description' => 'The URL to the item relative to the Drupal path.', 'type' => 'varchar', - 'length' => 255, + 'length' => 511, 'not null' => TRUE, 'default' => '', ], @@ -370,3 +370,18 @@ function xmlsitemap_update_8002() { ->condition('type', 'frontpage') ->execute(); } + + +/** + * Increase loc column length to 511. + */ +function xmlsitemap_update_8003() { + $db_schema = Database::getConnection()->schema(); + $db_schema->changeField('xmlsitemap', 'loc', 'loc', [ + 'description' => 'The URL to the item relative to the Drupal path.', + 'type' => 'varchar', + 'length' => 511, + 'not null' => TRUE, + 'default' => '', + ]); +} \ No newline at end of file